@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,1950 @@
|
|
|
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/ArchiveAgent.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
|
+
* ArchiveList functions of all kinds
|
|
28
|
+
*/
|
|
29
|
+
export interface IArchiveAgent {
|
|
30
|
+
createDefaultArchiveListResultAsync(): Promise< carriers.ArchiveListResult >;
|
|
31
|
+
getActivityFilterAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ActivityFilter >;
|
|
32
|
+
setActivityFilterAsync(request: carriers.Archive_SetActivityFilterRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
33
|
+
setActivityFilterAsync(activityFilter: carriers.ActivityFilter, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
34
|
+
getGroupAssociateIdsAsync(request: carriers.Archive_GetGroupAssociateIdsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< number[] >;
|
|
35
|
+
getGroupAssociateIdsAsync(groupIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< number[] >;
|
|
36
|
+
getArchiveConfigurationAsync(request: carriers.Archive_GetArchiveConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration >;
|
|
37
|
+
getArchiveConfigurationAsync(guiName: string, providerName: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration >;
|
|
38
|
+
getArchiveConfigurationWithContextAsync(request: carriers.Archive_GetArchiveConfigurationWithContextRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration >;
|
|
39
|
+
getArchiveConfigurationWithContextAsync(guiName: string, providerName: string, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration >;
|
|
40
|
+
setColumnWidthsAsync(request: carriers.Archive_SetColumnWidthsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
41
|
+
setColumnWidthsAsync(guiName: string, columnWidths: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
42
|
+
setChosenEntitiesAsync(request: carriers.Archive_SetChosenEntitiesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
43
|
+
setChosenEntitiesAsync(guiName: string, providerName: string, entities: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
44
|
+
setChosenColumnsAsync(request: carriers.Archive_SetChosenColumnsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
45
|
+
setChosenColumnsAsync(guiName: string, providerName: string, chosenColumns: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
46
|
+
getArchiveConfigurationV2Async(request: carriers.Archive_GetArchiveConfigurationV2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration >;
|
|
47
|
+
getArchiveConfigurationV2Async(guiName: string, providerName: string, context: string, ownerKeys: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration >;
|
|
48
|
+
setColumnWidthsV2Async(request: carriers.Archive_SetColumnWidthsV2Request, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
49
|
+
setColumnWidthsV2Async(guiName: string, providerName: string, context: string, ownerKeys: string, columnWidths: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
50
|
+
setChosenEntitiesV2Async(request: carriers.Archive_SetChosenEntitiesV2Request, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
51
|
+
setChosenEntitiesV2Async(guiName: string, providerName: string, context: string, ownerKeys: string, entities: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
52
|
+
setChosenColumnsV2Async(request: carriers.Archive_SetChosenColumnsV2Request, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
53
|
+
setChosenColumnsV2Async(guiName: string, providerName: string, context: string, ownerKeys: string, chosenColumns: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
54
|
+
getArchiveListByColumnsAsync(request: carriers.Archive_GetArchiveListByColumnsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
55
|
+
getArchiveListByColumnsAsync(providerName: string, columns: string[], sortOrder: carriers.ArchiveOrderByInfo[], restriction: carriers.ArchiveRestrictionInfo[], entities: string[], page: number, pageSize: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
56
|
+
getArchiveListByColumnsWithContextAsync(request: carriers.Archive_GetArchiveListByColumnsWithContextRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
57
|
+
getArchiveListByColumnsWithContextAsync(providerName: string, columns: string[], sortOrder: carriers.ArchiveOrderByInfo[], restriction: carriers.ArchiveRestrictionInfo[], entities: string[], page: number, pageSize: number, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
58
|
+
getArchiveListAsync(request: carriers.Archive_GetArchiveListRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
59
|
+
getArchiveListAsync(guiName: string, providerName: string, sortOrder: carriers.ArchiveOrderByInfo[], restriction: carriers.ArchiveRestrictionInfo[], entities: string[], page: number, pageSize: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
60
|
+
getArchiveListWithContextAsync(request: carriers.Archive_GetArchiveListWithContextRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
61
|
+
getArchiveListWithContextAsync(guiName: string, providerName: string, sortOrder: carriers.ArchiveOrderByInfo[], restriction: carriers.ArchiveRestrictionInfo[], entities: string[], page: number, pageSize: number, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
62
|
+
getArchiveListByColumnsWithHeaderAsync(request: carriers.Archive_GetArchiveListByColumnsWithHeaderRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
63
|
+
getArchiveListByColumnsWithHeaderAsync(providerName: string, columns: string[], sortOrder: carriers.ArchiveOrderByInfo[], restriction: carriers.ArchiveRestrictionInfo[], entities: string[], page: number, pageSize: number, options: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
64
|
+
getProviderNamesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string[] >;
|
|
65
|
+
getArchiveListByColumnsWithHeaderWithContextAsync(request: carriers.Archive_GetArchiveListByColumnsWithHeaderWithContextRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
66
|
+
getArchiveListByColumnsWithHeaderWithContextAsync(providerName: string, columns: string[], sortOrder: carriers.ArchiveOrderByInfo[], restriction: carriers.ArchiveRestrictionInfo[], entities: string[], page: number, pageSize: number, options: string, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
67
|
+
getAvailableColumnsAsync(request: carriers.Archive_GetAvailableColumnsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveColumnInfo[] >;
|
|
68
|
+
getAvailableColumnsAsync(providerName: string, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveColumnInfo[] >;
|
|
69
|
+
getAvailableEntitiesAsync(request: carriers.Archive_GetAvailableEntitiesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] >;
|
|
70
|
+
getAvailableEntitiesAsync(providerName: string, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] >;
|
|
71
|
+
getArchiveListByColumns2Async(request: carriers.Archive_GetArchiveListByColumns2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
72
|
+
getArchiveListByColumns2Async(providerName: string, columns: string, sortOrder: string, restrictions: string, entities: string, page: number, pageSize: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
73
|
+
getArchiveListByColumnsWithContext2Async(request: carriers.Archive_GetArchiveListByColumnsWithContext2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
74
|
+
getArchiveListByColumnsWithContext2Async(providerName: string, columns: string, sortOrder: string, restriction: string, entities: string, page: number, pageSize: number, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
75
|
+
getArchiveList2Async(request: carriers.Archive_GetArchiveList2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
76
|
+
getArchiveList2Async(guiName: string, providerName: string, sortOrder: string, restriction: string, entities: string, page: number, pageSize: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
77
|
+
getArchiveListWithContext2Async(request: carriers.Archive_GetArchiveListWithContext2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
78
|
+
getArchiveListWithContext2Async(guiName: string, providerName: string, sortOrder: string, restriction: string, entities: string, page: number, pageSize: number, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
79
|
+
getArchiveListByColumnsWithHeader2Async(request: carriers.Archive_GetArchiveListByColumnsWithHeader2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
80
|
+
getArchiveListByColumnsWithHeader2Async(providerName: string, columns: string, sortOrder: string, restriction: string, entities: string, page: number, pageSize: number, options: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
81
|
+
getArchiveListByColumnsWithHeaderWithContext2Async(request: carriers.Archive_GetArchiveListByColumnsWithHeaderWithContext2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
82
|
+
getArchiveListByColumnsWithHeaderWithContext2Async(providerName: string, columns: string, sortOrder: string, restriction: string, entities: string, page: number, pageSize: number, options: string, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
83
|
+
exportArchiveAsync(request: carriers.Archive_ExportArchiveRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ExportArchiveResult >;
|
|
84
|
+
exportArchiveAsync(providerName: string, context: string, desiredEntities: string[], columns: string[], sortOrder: carriers.ArchiveOrderByInfo[], restrictions: carriers.ArchiveRestrictionInfo[], exportType: string, selectedRowIds: string[], estimatedRowCount: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ExportArchiveResult >;
|
|
85
|
+
getRelatedDataAsync(request: carriers.Archive_GetRelatedDataRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.RelatedData[] >;
|
|
86
|
+
getRelatedDataAsync(table: string, recordId: number, fields: string[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.RelatedData[] >;
|
|
87
|
+
getRelatedData2Async(request: carriers.Archive_GetRelatedData2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.RelatedData[] >;
|
|
88
|
+
getRelatedData2Async(table: string, recordId: number, fields: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.RelatedData[] >;
|
|
89
|
+
} // interface IArchiveAgent
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* ArchiveList functions of all kinds
|
|
96
|
+
*/
|
|
97
|
+
export class ArchiveAgent extends base.WebApiBase implements IArchiveAgent {
|
|
98
|
+
constructor(baseUrl?: string, languageCode?:string, cultureCode?: string);
|
|
99
|
+
constructor(baseUrl?: string, resourceParsing?: base.ResourceParsing);
|
|
100
|
+
constructor(baseUrl: string, resourceManager:any);
|
|
101
|
+
constructor(baseUrl: string, config:AxiosRequestConfig, resourceManager:any);
|
|
102
|
+
constructor(baseUrl: string, config:AxiosRequestConfig, resourceParsing?: base.ResourceParsing);
|
|
103
|
+
constructor(baseUrl: string, config:AxiosRequestConfig, languageCode?:string, cultureCode?: string);
|
|
104
|
+
constructor(options: base.WebApiOptions);
|
|
105
|
+
|
|
106
|
+
constructor(baseUrlOrOptions: string|base.WebApiOptions|undefined,
|
|
107
|
+
langOrconfigOrRM?: string|base.ResourceParsing|AxiosRequestConfig|any,
|
|
108
|
+
langOrResourceOrRM?:string|base.ResourceParsing|any,
|
|
109
|
+
cultureCode?: string,
|
|
110
|
+
) {
|
|
111
|
+
const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
|
|
112
|
+
options.basePath = "v1/Agents/Archive/";
|
|
113
|
+
super(options);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Set default values into a new ArchiveListResult.
|
|
120
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
121
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
122
|
+
* @returns A blank entity.
|
|
123
|
+
*/
|
|
124
|
+
public async createDefaultArchiveListResultAsync(options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult > {
|
|
125
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
126
|
+
base.WebApiBase.SetPending(options);
|
|
127
|
+
return new Promise< carriers.ArchiveListResult >(async (resolve, reject) => {
|
|
128
|
+
try {
|
|
129
|
+
const response = await this._axios.post("CreateDefaultArchiveListResult", null, config);
|
|
130
|
+
base.WebApiBase.SetCompleted(options);
|
|
131
|
+
const res : carriers.ArchiveListResult = converters.Create_ArchiveListResult_From( response.data );
|
|
132
|
+
resolve(res);
|
|
133
|
+
}
|
|
134
|
+
catch( err ) {
|
|
135
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
136
|
+
reject(err);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
private async _getActivityFilterAsync( options?:base.WebApiRequestOptions) : Promise< carriers.ActivityFilter > {
|
|
142
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
143
|
+
base.WebApiBase.SetPending(options);
|
|
144
|
+
return new Promise< carriers.ActivityFilter >(async (resolve, reject) => {
|
|
145
|
+
try {
|
|
146
|
+
config.baseURL = this._options.baseUrl;
|
|
147
|
+
const response = await this._axios.post("GetActivityFilter", undefined , config);
|
|
148
|
+
base.WebApiBase.SetCompleted(options);
|
|
149
|
+
const res : carriers.ActivityFilter = converters.Create_ActivityFilter_From( response.data );
|
|
150
|
+
resolve(res);
|
|
151
|
+
}
|
|
152
|
+
catch( err ) {
|
|
153
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
154
|
+
reject(err);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Get activity filter for the specified list.
|
|
162
|
+
* @returns The activity filter for the specified list
|
|
163
|
+
*/
|
|
164
|
+
public async getActivityFilterAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ActivityFilter >
|
|
165
|
+
{
|
|
166
|
+
return this._getActivityFilterAsync(webapi_options);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
private async _setActivityFilterAsync(request: carriers.Archive_SetActivityFilterRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
171
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
172
|
+
base.WebApiBase.SetPending(options);
|
|
173
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
174
|
+
try {
|
|
175
|
+
config.baseURL = this._options.baseUrl;
|
|
176
|
+
const response = await this._axios.post("SetActivityFilter", request , config);
|
|
177
|
+
base.WebApiBase.SetCompleted(options);
|
|
178
|
+
const res = response.data;
|
|
179
|
+
resolve(res);
|
|
180
|
+
}
|
|
181
|
+
catch( err ) {
|
|
182
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
183
|
+
reject(err);
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Set activity filter for the specified list.
|
|
192
|
+
* @param request - ActivityFilter
|
|
193
|
+
* @returns
|
|
194
|
+
*/
|
|
195
|
+
public async setActivityFilterAsync(request: carriers.Archive_SetActivityFilterRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Set activity filter for the specified list.
|
|
199
|
+
* @param activityFilter - New activity filter
|
|
200
|
+
* @returns
|
|
201
|
+
*/
|
|
202
|
+
public async setActivityFilterAsync(activityFilter: carriers.ActivityFilter, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
203
|
+
|
|
204
|
+
public async setActivityFilterAsync(activityFilter:carriers.ActivityFilter|carriers.Archive_SetActivityFilterRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
205
|
+
let _request : carriers.Archive_SetActivityFilterRequest = null;
|
|
206
|
+
let _options : base.WebApiRequestOptions = null;
|
|
207
|
+
const first : any = activityFilter;
|
|
208
|
+
if( typeof( first ) === "object" && first && ( typeof(first.activityFilter)!='undefined' ) )
|
|
209
|
+
{
|
|
210
|
+
_request = activityFilter as carriers.Archive_SetActivityFilterRequest;
|
|
211
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
212
|
+
}
|
|
213
|
+
else
|
|
214
|
+
{
|
|
215
|
+
_request = {
|
|
216
|
+
activityFilter: activityFilter as carriers.ActivityFilter,
|
|
217
|
+
};
|
|
218
|
+
_options = webapi_options;
|
|
219
|
+
}
|
|
220
|
+
return this._setActivityFilterAsync( _request, _options );
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
private async _getGroupAssociateIdsAsync(request: carriers.Archive_GetGroupAssociateIdsRequest, options?:base.WebApiRequestOptions) : Promise< number[] > {
|
|
225
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
226
|
+
base.WebApiBase.SetPending(options);
|
|
227
|
+
return new Promise< number[] >(async (resolve, reject) => {
|
|
228
|
+
try {
|
|
229
|
+
config.baseURL = this._options.baseUrl;
|
|
230
|
+
const response = await this._axios.post("GetGroupAssociateIds", request , config);
|
|
231
|
+
base.WebApiBase.SetCompleted(options);
|
|
232
|
+
const res : number[] = response.data as number[];
|
|
233
|
+
resolve(res);
|
|
234
|
+
}
|
|
235
|
+
catch( err ) {
|
|
236
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
237
|
+
reject(err);
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Returns the associate ids that belongs to the given groups
|
|
246
|
+
* @param request - GroupIds
|
|
247
|
+
* @returns Array of associate ids
|
|
248
|
+
*/
|
|
249
|
+
public async getGroupAssociateIdsAsync(request: carriers.Archive_GetGroupAssociateIdsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< number[] >;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Returns the associate ids that belongs to the given groups
|
|
253
|
+
* @param groupIds - Array of group ids
|
|
254
|
+
* @returns Array of associate ids
|
|
255
|
+
*/
|
|
256
|
+
public async getGroupAssociateIdsAsync(groupIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< number[] >;
|
|
257
|
+
|
|
258
|
+
public async getGroupAssociateIdsAsync(groupIds:number[]|carriers.Archive_GetGroupAssociateIdsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< number[] > {
|
|
259
|
+
let _request : carriers.Archive_GetGroupAssociateIdsRequest = null;
|
|
260
|
+
let _options : base.WebApiRequestOptions = null;
|
|
261
|
+
const first : any = groupIds;
|
|
262
|
+
if( typeof( first ) === "object" && first && ( typeof(first.groupIds)!='undefined' ) )
|
|
263
|
+
{
|
|
264
|
+
_request = groupIds as carriers.Archive_GetGroupAssociateIdsRequest;
|
|
265
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
266
|
+
}
|
|
267
|
+
else
|
|
268
|
+
{
|
|
269
|
+
_request = {
|
|
270
|
+
groupIds: groupIds as number[],
|
|
271
|
+
};
|
|
272
|
+
_options = webapi_options;
|
|
273
|
+
}
|
|
274
|
+
return this._getGroupAssociateIdsAsync( _request, _options );
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
private async _getArchiveConfigurationAsync(request: carriers.Archive_GetArchiveConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration > {
|
|
279
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
280
|
+
base.WebApiBase.SetPending(options);
|
|
281
|
+
return new Promise< carriers.ArchiveConfiguration >(async (resolve, reject) => {
|
|
282
|
+
try {
|
|
283
|
+
config.baseURL = this._options.baseUrl;
|
|
284
|
+
const response = await this._axios.post("GetArchiveConfiguration", request , config);
|
|
285
|
+
base.WebApiBase.SetCompleted(options);
|
|
286
|
+
const res : carriers.ArchiveConfiguration = converters.Create_ArchiveConfiguration_From( response.data );
|
|
287
|
+
resolve(res);
|
|
288
|
+
}
|
|
289
|
+
catch( err ) {
|
|
290
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
291
|
+
reject(err);
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Get the configuration for one archive. The configuration is keyed by a combination of archive provider name and gui name. The archive provider name must match an archive provider plugin; the gui name is an arbitrary string used to distinguish multiple occurrences of the same underlying provider in a gui.
|
|
300
|
+
* @param request - GuiName, ProviderName
|
|
301
|
+
* @returns Archive configuration consisting of column information, orderby information and entities
|
|
302
|
+
*/
|
|
303
|
+
public async getArchiveConfigurationAsync(request: carriers.Archive_GetArchiveConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration >;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Get the configuration for one archive. The configuration is keyed by a combination of archive provider name and gui name. The archive provider name must match an archive provider plugin; the gui name is an arbitrary string used to distinguish multiple occurrences of the same underlying provider in a gui.
|
|
307
|
+
* @param guiName - String that identifies the archive in the GUI, must be the same when fetching and storing configurations, but does not otherwise have to match anything.
|
|
308
|
+
* @param providerName - Name of archive provider, must match one of the plugins known to the ArchiveProviderFactory.
|
|
309
|
+
* @returns Archive configuration consisting of column information, orderby information and entities
|
|
310
|
+
*/
|
|
311
|
+
public async getArchiveConfigurationAsync(guiName: string, providerName: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration >;
|
|
312
|
+
|
|
313
|
+
public async getArchiveConfigurationAsync(guiName:string|carriers.Archive_GetArchiveConfigurationRequest, providerName?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration > {
|
|
314
|
+
let _request : carriers.Archive_GetArchiveConfigurationRequest = null;
|
|
315
|
+
let _options : base.WebApiRequestOptions = null;
|
|
316
|
+
const first : any = guiName;
|
|
317
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.providerName)!='undefined' ) )
|
|
318
|
+
{
|
|
319
|
+
_request = guiName as carriers.Archive_GetArchiveConfigurationRequest;
|
|
320
|
+
_options = providerName as base.WebApiRequestOptions;
|
|
321
|
+
}
|
|
322
|
+
else
|
|
323
|
+
{
|
|
324
|
+
_request = {
|
|
325
|
+
guiName: guiName as string,
|
|
326
|
+
providerName: providerName as string,
|
|
327
|
+
};
|
|
328
|
+
_options = webapi_options;
|
|
329
|
+
}
|
|
330
|
+
return this._getArchiveConfigurationAsync( _request, _options );
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
private async _getArchiveConfigurationWithContextAsync(request: carriers.Archive_GetArchiveConfigurationWithContextRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration > {
|
|
335
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
336
|
+
base.WebApiBase.SetPending(options);
|
|
337
|
+
return new Promise< carriers.ArchiveConfiguration >(async (resolve, reject) => {
|
|
338
|
+
try {
|
|
339
|
+
config.baseURL = this._options.baseUrl;
|
|
340
|
+
const response = await this._axios.post("GetArchiveConfigurationWithContext", request , config);
|
|
341
|
+
base.WebApiBase.SetCompleted(options);
|
|
342
|
+
const res : carriers.ArchiveConfiguration = converters.Create_ArchiveConfiguration_From( response.data );
|
|
343
|
+
resolve(res);
|
|
344
|
+
}
|
|
345
|
+
catch( err ) {
|
|
346
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
347
|
+
reject(err);
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Get the configuration for one archive, with context parameter. The configuration is keyed by a combination of archive provider name and gui name. The archive provider name must match an archive provider plugin; the gui name is an arbitrary string used to distinguish multiple occurrences of the same underlying provider in a gui.
|
|
356
|
+
* @param request - GuiName, ProviderName, Context
|
|
357
|
+
* @returns Archive configuration consisting of column information, orderby information and entities
|
|
358
|
+
*/
|
|
359
|
+
public async getArchiveConfigurationWithContextAsync(request: carriers.Archive_GetArchiveConfigurationWithContextRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration >;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Get the configuration for one archive, with context parameter. The configuration is keyed by a combination of archive provider name and gui name. The archive provider name must match an archive provider plugin; the gui name is an arbitrary string used to distinguish multiple occurrences of the same underlying provider in a gui.
|
|
363
|
+
* @param guiName - String that identifies the archive in the GUI, must be the same when fetching and storing configurations, but does not otherwise have to match anything.
|
|
364
|
+
* @param providerName - Name of archive provider, must match one of the plugins known to the ArchiveProviderFactory.
|
|
365
|
+
* @param context - Context parameter, url-encoded string context parameter for ArchiveProvider constructor
|
|
366
|
+
* @returns Archive configuration consisting of column information, orderby information and entities
|
|
367
|
+
*/
|
|
368
|
+
public async getArchiveConfigurationWithContextAsync(guiName: string, providerName: string, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration >;
|
|
369
|
+
|
|
370
|
+
public async getArchiveConfigurationWithContextAsync(guiName:string|carriers.Archive_GetArchiveConfigurationWithContextRequest, providerName?:string|base.WebApiRequestOptions, context?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration > {
|
|
371
|
+
let _request : carriers.Archive_GetArchiveConfigurationWithContextRequest = null;
|
|
372
|
+
let _options : base.WebApiRequestOptions = null;
|
|
373
|
+
const first : any = guiName;
|
|
374
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.providerName)!='undefined' || typeof(first.context)!='undefined' ) )
|
|
375
|
+
{
|
|
376
|
+
_request = guiName as carriers.Archive_GetArchiveConfigurationWithContextRequest;
|
|
377
|
+
_options = providerName as base.WebApiRequestOptions;
|
|
378
|
+
}
|
|
379
|
+
else
|
|
380
|
+
{
|
|
381
|
+
_request = {
|
|
382
|
+
guiName: guiName as string,
|
|
383
|
+
providerName: providerName as string,
|
|
384
|
+
context: context as string,
|
|
385
|
+
};
|
|
386
|
+
_options = webapi_options;
|
|
387
|
+
}
|
|
388
|
+
return this._getArchiveConfigurationWithContextAsync( _request, _options );
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
private async _setColumnWidthsAsync(request: carriers.Archive_SetColumnWidthsRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
393
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
394
|
+
base.WebApiBase.SetPending(options);
|
|
395
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
396
|
+
try {
|
|
397
|
+
config.baseURL = this._options.baseUrl;
|
|
398
|
+
const response = await this._axios.post("SetColumnWidths", request , config);
|
|
399
|
+
base.WebApiBase.SetCompleted(options);
|
|
400
|
+
const res = response.data;
|
|
401
|
+
resolve(res);
|
|
402
|
+
}
|
|
403
|
+
catch( err ) {
|
|
404
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
405
|
+
reject(err);
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Set the column widths for the given set of columns and GUI name.
|
|
414
|
+
* @param request - GuiName, ColumnWidths
|
|
415
|
+
* @returns
|
|
416
|
+
*/
|
|
417
|
+
public async setColumnWidthsAsync(request: carriers.Archive_SetColumnWidthsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Set the column widths for the given set of columns and GUI name.
|
|
421
|
+
* @param guiName - String that identifies the archive in the GUI, must be the same when fetching and storing configurations, but does not otherwise have to match anything.
|
|
422
|
+
* @param columnWidths - Array of column widths. A column width is specified either as a fixed number of character (10c) or as a percentage (10%). Percentages will be recalculated so that they add up to exactly 100 when the configuration is fetched again.
|
|
423
|
+
* @returns
|
|
424
|
+
*/
|
|
425
|
+
public async setColumnWidthsAsync(guiName: string, columnWidths: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
426
|
+
|
|
427
|
+
public async setColumnWidthsAsync(guiName:string|carriers.Archive_SetColumnWidthsRequest, columnWidths?:string[]|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
428
|
+
let _request : carriers.Archive_SetColumnWidthsRequest = null;
|
|
429
|
+
let _options : base.WebApiRequestOptions = null;
|
|
430
|
+
const first : any = guiName;
|
|
431
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.columnWidths)!='undefined' ) )
|
|
432
|
+
{
|
|
433
|
+
_request = guiName as carriers.Archive_SetColumnWidthsRequest;
|
|
434
|
+
_options = columnWidths as base.WebApiRequestOptions;
|
|
435
|
+
}
|
|
436
|
+
else
|
|
437
|
+
{
|
|
438
|
+
_request = {
|
|
439
|
+
guiName: guiName as string,
|
|
440
|
+
columnWidths: columnWidths as string[],
|
|
441
|
+
};
|
|
442
|
+
_options = webapi_options;
|
|
443
|
+
}
|
|
444
|
+
return this._setColumnWidthsAsync( _request, _options );
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
private async _setChosenEntitiesAsync(request: carriers.Archive_SetChosenEntitiesRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
449
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
450
|
+
base.WebApiBase.SetPending(options);
|
|
451
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
452
|
+
try {
|
|
453
|
+
config.baseURL = this._options.baseUrl;
|
|
454
|
+
const response = await this._axios.post("SetChosenEntities", request , config);
|
|
455
|
+
base.WebApiBase.SetCompleted(options);
|
|
456
|
+
const res = response.data;
|
|
457
|
+
resolve(res);
|
|
458
|
+
}
|
|
459
|
+
catch( err ) {
|
|
460
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
461
|
+
reject(err);
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Set the currently chosen entities for the given gui name/provider name combination. This service corresponds to the SetSelected method of the SelectableMDOList service, for a list called archiveEntities: plus the archive provider name and gui name as its additionalInfo.
|
|
470
|
+
* @param request - GuiName, ProviderName, Entities
|
|
471
|
+
* @returns
|
|
472
|
+
*/
|
|
473
|
+
public async setChosenEntitiesAsync(request: carriers.Archive_SetChosenEntitiesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Set the currently chosen entities for the given gui name/provider name combination. This service corresponds to the SetSelected method of the SelectableMDOList service, for a list called archiveEntities: plus the archive provider name and gui name as its additionalInfo.
|
|
477
|
+
* @param guiName - String that identifies the archive in the GUI, must be the same when fetching and storing configurations, but does not otherwise have to match anything.
|
|
478
|
+
* @param providerName - Name of archive provider, must match one of the plugins known to the ArchiveProviderFactory.
|
|
479
|
+
* @param entities - Array of entity names
|
|
480
|
+
* @returns
|
|
481
|
+
*/
|
|
482
|
+
public async setChosenEntitiesAsync(guiName: string, providerName: string, entities: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
483
|
+
|
|
484
|
+
public async setChosenEntitiesAsync(guiName:string|carriers.Archive_SetChosenEntitiesRequest, providerName?:string|base.WebApiRequestOptions, entities?:string[], webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
485
|
+
let _request : carriers.Archive_SetChosenEntitiesRequest = null;
|
|
486
|
+
let _options : base.WebApiRequestOptions = null;
|
|
487
|
+
const first : any = guiName;
|
|
488
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.providerName)!='undefined' || typeof(first.entities)!='undefined' ) )
|
|
489
|
+
{
|
|
490
|
+
_request = guiName as carriers.Archive_SetChosenEntitiesRequest;
|
|
491
|
+
_options = providerName as base.WebApiRequestOptions;
|
|
492
|
+
}
|
|
493
|
+
else
|
|
494
|
+
{
|
|
495
|
+
_request = {
|
|
496
|
+
guiName: guiName as string,
|
|
497
|
+
providerName: providerName as string,
|
|
498
|
+
entities: entities as string[],
|
|
499
|
+
};
|
|
500
|
+
_options = webapi_options;
|
|
501
|
+
}
|
|
502
|
+
return this._setChosenEntitiesAsync( _request, _options );
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
private async _setChosenColumnsAsync(request: carriers.Archive_SetChosenColumnsRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
507
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
508
|
+
base.WebApiBase.SetPending(options);
|
|
509
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
510
|
+
try {
|
|
511
|
+
config.baseURL = this._options.baseUrl;
|
|
512
|
+
const response = await this._axios.post("SetChosenColumns", request , config);
|
|
513
|
+
base.WebApiBase.SetCompleted(options);
|
|
514
|
+
const res = response.data;
|
|
515
|
+
resolve(res);
|
|
516
|
+
}
|
|
517
|
+
catch( err ) {
|
|
518
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
519
|
+
reject(err);
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Set the currently chosen columns for the given gui name/provider name combination. This service corresponds to the SetSelected method of the SelectableMDOList service, for a list called archiveColumns: plus the archive provider name and gui name as its additionalInfo.
|
|
528
|
+
* @param request - GuiName, ProviderName, ChosenColumns
|
|
529
|
+
* @returns
|
|
530
|
+
*/
|
|
531
|
+
public async setChosenColumnsAsync(request: carriers.Archive_SetChosenColumnsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Set the currently chosen columns for the given gui name/provider name combination. This service corresponds to the SetSelected method of the SelectableMDOList service, for a list called archiveColumns: plus the archive provider name and gui name as its additionalInfo.
|
|
535
|
+
* @param guiName - String that identifies the archive in the GUI, must be the same when fetching and storing configurations, but does not otherwise have to match anything.
|
|
536
|
+
* @param providerName - Name of archive provider, must match one of the plugins known to the ArchiveProviderFactory.
|
|
537
|
+
* @param chosenColumns - Array of column names, where array order indicates left to right order in the archive.
|
|
538
|
+
* @returns
|
|
539
|
+
*/
|
|
540
|
+
public async setChosenColumnsAsync(guiName: string, providerName: string, chosenColumns: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
541
|
+
|
|
542
|
+
public async setChosenColumnsAsync(guiName:string|carriers.Archive_SetChosenColumnsRequest, providerName?:string|base.WebApiRequestOptions, chosenColumns?:string[], webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
543
|
+
let _request : carriers.Archive_SetChosenColumnsRequest = null;
|
|
544
|
+
let _options : base.WebApiRequestOptions = null;
|
|
545
|
+
const first : any = guiName;
|
|
546
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.providerName)!='undefined' || typeof(first.chosenColumns)!='undefined' ) )
|
|
547
|
+
{
|
|
548
|
+
_request = guiName as carriers.Archive_SetChosenColumnsRequest;
|
|
549
|
+
_options = providerName as base.WebApiRequestOptions;
|
|
550
|
+
}
|
|
551
|
+
else
|
|
552
|
+
{
|
|
553
|
+
_request = {
|
|
554
|
+
guiName: guiName as string,
|
|
555
|
+
providerName: providerName as string,
|
|
556
|
+
chosenColumns: chosenColumns as string[],
|
|
557
|
+
};
|
|
558
|
+
_options = webapi_options;
|
|
559
|
+
}
|
|
560
|
+
return this._setChosenColumnsAsync( _request, _options );
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
private async _getArchiveConfigurationV2Async(request: carriers.Archive_GetArchiveConfigurationV2Request, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration > {
|
|
565
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
566
|
+
base.WebApiBase.SetPending(options);
|
|
567
|
+
return new Promise< carriers.ArchiveConfiguration >(async (resolve, reject) => {
|
|
568
|
+
try {
|
|
569
|
+
config.baseURL = this._options.baseUrl;
|
|
570
|
+
const response = await this._axios.post("GetArchiveConfigurationV2", request , config);
|
|
571
|
+
base.WebApiBase.SetCompleted(options);
|
|
572
|
+
const res : carriers.ArchiveConfiguration = converters.Create_ArchiveConfiguration_From( response.data );
|
|
573
|
+
resolve(res);
|
|
574
|
+
}
|
|
575
|
+
catch( err ) {
|
|
576
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
577
|
+
reject(err);
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Get the configuration for one archive. The configuration is keyed by a combination of archive provider name (plus optional context), gui name, and optional table binding. The archive provider name must match an archive provider plugin; the gui name is an arbitrary string used to distinguish multiple occurrences of the same underlying provider in a gui.
|
|
586
|
+
* @param request - GuiName, ProviderName, Context, OwnerKeys
|
|
587
|
+
* @returns Archive configuration consisting of column information, orderby information and entities
|
|
588
|
+
*/
|
|
589
|
+
public async getArchiveConfigurationV2Async(request: carriers.Archive_GetArchiveConfigurationV2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration >;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Get the configuration for one archive. The configuration is keyed by a combination of archive provider name (plus optional context), gui name, and optional table binding. The archive provider name must match an archive provider plugin; the gui name is an arbitrary string used to distinguish multiple occurrences of the same underlying provider in a gui.
|
|
593
|
+
* @param guiName - String that identifies the archive in the GUI, must be the same when fetching and storing configurations, but does not otherwise have to match anything.
|
|
594
|
+
* @param providerName - Name of archive provider, must match one of the plugins known to the ArchiveProviderFactory.
|
|
595
|
+
* @param context - Context parameter, url-encoded string context parameter for ArchiveProvider constructor. Optional, but required for archives that depend on a context - for instance Quote archives that need to know their QuoteConnectionId to be meaningful
|
|
596
|
+
* @param ownerKeys - Name/value string containing ownership binding information. The first should resolve to a table/primarykey, such as selection=123. Future functionality may allow multiple/extended keys
|
|
597
|
+
* @returns Archive configuration consisting of column information, orderby information and entities
|
|
598
|
+
*/
|
|
599
|
+
public async getArchiveConfigurationV2Async(guiName: string, providerName: string, context: string, ownerKeys: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration >;
|
|
600
|
+
|
|
601
|
+
public async getArchiveConfigurationV2Async(guiName:string|carriers.Archive_GetArchiveConfigurationV2Request, providerName?:string|base.WebApiRequestOptions, context?:string, ownerKeys?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveConfiguration > {
|
|
602
|
+
let _request : carriers.Archive_GetArchiveConfigurationV2Request = null;
|
|
603
|
+
let _options : base.WebApiRequestOptions = null;
|
|
604
|
+
const first : any = guiName;
|
|
605
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.providerName)!='undefined' || typeof(first.context)!='undefined' || typeof(first.ownerKeys)!='undefined' ) )
|
|
606
|
+
{
|
|
607
|
+
_request = guiName as carriers.Archive_GetArchiveConfigurationV2Request;
|
|
608
|
+
_options = providerName as base.WebApiRequestOptions;
|
|
609
|
+
}
|
|
610
|
+
else
|
|
611
|
+
{
|
|
612
|
+
_request = {
|
|
613
|
+
guiName: guiName as string,
|
|
614
|
+
providerName: providerName as string,
|
|
615
|
+
context: context as string,
|
|
616
|
+
ownerKeys: ownerKeys as string,
|
|
617
|
+
};
|
|
618
|
+
_options = webapi_options;
|
|
619
|
+
}
|
|
620
|
+
return this._getArchiveConfigurationV2Async( _request, _options );
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
private async _setColumnWidthsV2Async(request: carriers.Archive_SetColumnWidthsV2Request, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
625
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
626
|
+
base.WebApiBase.SetPending(options);
|
|
627
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
628
|
+
try {
|
|
629
|
+
config.baseURL = this._options.baseUrl;
|
|
630
|
+
const response = await this._axios.post("SetColumnWidthsV2", request , config);
|
|
631
|
+
base.WebApiBase.SetCompleted(options);
|
|
632
|
+
const res = response.data;
|
|
633
|
+
resolve(res);
|
|
634
|
+
}
|
|
635
|
+
catch( err ) {
|
|
636
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
637
|
+
reject(err);
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Set the column widths for the given set of columns and GUI name.
|
|
646
|
+
* @param request - GuiName, ProviderName, Context, OwnerKeys, ColumnWidths
|
|
647
|
+
* @returns
|
|
648
|
+
*/
|
|
649
|
+
public async setColumnWidthsV2Async(request: carriers.Archive_SetColumnWidthsV2Request, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Set the column widths for the given set of columns and GUI name.
|
|
653
|
+
* @param guiName - String that identifies the archive in the GUI, must be the same when fetching and storing configurations, but does not otherwise have to match anything.
|
|
654
|
+
* @param providerName - Name of archive provider, must match one of the plugins known to the ArchiveProviderFactory.
|
|
655
|
+
* @param context - Context parameter, url-encoded string context parameter for ArchiveProvider constructor. Optional, but required for archives that depend on a context - for instance Quote archives that need to know their QuoteConnectionId to be meaningful
|
|
656
|
+
* @param ownerKeys - Name/value string containing ownership binding information. The first should resolve to a table/primarykey, such as selection=123. Future functionality may allow multiple/extended keys
|
|
657
|
+
* @param columnWidths - Array of column widths. A column width is specified either as a fixed number of character (10c) or as a percentage (10%). Percentages will be recalculated so that they add up to exactly 100 when the configuration is fetched again.
|
|
658
|
+
* @returns
|
|
659
|
+
*/
|
|
660
|
+
public async setColumnWidthsV2Async(guiName: string, providerName: string, context: string, ownerKeys: string, columnWidths: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
661
|
+
|
|
662
|
+
public async setColumnWidthsV2Async(guiName:string|carriers.Archive_SetColumnWidthsV2Request, providerName?:string|base.WebApiRequestOptions, context?:string, ownerKeys?:string, columnWidths?:string[], webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
663
|
+
let _request : carriers.Archive_SetColumnWidthsV2Request = null;
|
|
664
|
+
let _options : base.WebApiRequestOptions = null;
|
|
665
|
+
const first : any = guiName;
|
|
666
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.providerName)!='undefined' || typeof(first.context)!='undefined' || typeof(first.ownerKeys)!='undefined' || typeof(first.columnWidths)!='undefined' ) )
|
|
667
|
+
{
|
|
668
|
+
_request = guiName as carriers.Archive_SetColumnWidthsV2Request;
|
|
669
|
+
_options = providerName as base.WebApiRequestOptions;
|
|
670
|
+
}
|
|
671
|
+
else
|
|
672
|
+
{
|
|
673
|
+
_request = {
|
|
674
|
+
guiName: guiName as string,
|
|
675
|
+
providerName: providerName as string,
|
|
676
|
+
context: context as string,
|
|
677
|
+
ownerKeys: ownerKeys as string,
|
|
678
|
+
columnWidths: columnWidths as string[],
|
|
679
|
+
};
|
|
680
|
+
_options = webapi_options;
|
|
681
|
+
}
|
|
682
|
+
return this._setColumnWidthsV2Async( _request, _options );
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
private async _setChosenEntitiesV2Async(request: carriers.Archive_SetChosenEntitiesV2Request, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
687
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
688
|
+
base.WebApiBase.SetPending(options);
|
|
689
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
690
|
+
try {
|
|
691
|
+
config.baseURL = this._options.baseUrl;
|
|
692
|
+
const response = await this._axios.post("SetChosenEntitiesV2", request , config);
|
|
693
|
+
base.WebApiBase.SetCompleted(options);
|
|
694
|
+
const res = response.data;
|
|
695
|
+
resolve(res);
|
|
696
|
+
}
|
|
697
|
+
catch( err ) {
|
|
698
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
699
|
+
reject(err);
|
|
700
|
+
}
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Set the currently chosen entities for the given gui name/provider name combination. This service corresponds to the SetSelected method of the SelectableMDOList service, for a list called archiveEntities: plus the archive provider name and gui name as its additionalInfo.
|
|
708
|
+
* @param request - GuiName, ProviderName, Context, OwnerKeys, Entities
|
|
709
|
+
* @returns
|
|
710
|
+
*/
|
|
711
|
+
public async setChosenEntitiesV2Async(request: carriers.Archive_SetChosenEntitiesV2Request, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Set the currently chosen entities for the given gui name/provider name combination. This service corresponds to the SetSelected method of the SelectableMDOList service, for a list called archiveEntities: plus the archive provider name and gui name as its additionalInfo.
|
|
715
|
+
* @param guiName - String that identifies the archive in the GUI, must be the same when fetching and storing configurations, but does not otherwise have to match anything.
|
|
716
|
+
* @param providerName - Name of archive provider, must match one of the plugins known to the ArchiveProviderFactory.
|
|
717
|
+
* @param context - Context parameter, url-encoded string context parameter for ArchiveProvider constructor. Optional, but required for archives that depend on a context - for instance Quote archives that need to know their QuoteConnectionId to be meaningful
|
|
718
|
+
* @param ownerKeys - Name/value string containing ownership binding information. The first should resolve to a table/primarykey, such as selection=123. Future functionality may allow multiple/extended keys
|
|
719
|
+
* @param entities - Array of entity names
|
|
720
|
+
* @returns
|
|
721
|
+
*/
|
|
722
|
+
public async setChosenEntitiesV2Async(guiName: string, providerName: string, context: string, ownerKeys: string, entities: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
723
|
+
|
|
724
|
+
public async setChosenEntitiesV2Async(guiName:string|carriers.Archive_SetChosenEntitiesV2Request, providerName?:string|base.WebApiRequestOptions, context?:string, ownerKeys?:string, entities?:string[], webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
725
|
+
let _request : carriers.Archive_SetChosenEntitiesV2Request = null;
|
|
726
|
+
let _options : base.WebApiRequestOptions = null;
|
|
727
|
+
const first : any = guiName;
|
|
728
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.providerName)!='undefined' || typeof(first.context)!='undefined' || typeof(first.ownerKeys)!='undefined' || typeof(first.entities)!='undefined' ) )
|
|
729
|
+
{
|
|
730
|
+
_request = guiName as carriers.Archive_SetChosenEntitiesV2Request;
|
|
731
|
+
_options = providerName as base.WebApiRequestOptions;
|
|
732
|
+
}
|
|
733
|
+
else
|
|
734
|
+
{
|
|
735
|
+
_request = {
|
|
736
|
+
guiName: guiName as string,
|
|
737
|
+
providerName: providerName as string,
|
|
738
|
+
context: context as string,
|
|
739
|
+
ownerKeys: ownerKeys as string,
|
|
740
|
+
entities: entities as string[],
|
|
741
|
+
};
|
|
742
|
+
_options = webapi_options;
|
|
743
|
+
}
|
|
744
|
+
return this._setChosenEntitiesV2Async( _request, _options );
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
private async _setChosenColumnsV2Async(request: carriers.Archive_SetChosenColumnsV2Request, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
749
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
750
|
+
base.WebApiBase.SetPending(options);
|
|
751
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
752
|
+
try {
|
|
753
|
+
config.baseURL = this._options.baseUrl;
|
|
754
|
+
const response = await this._axios.post("SetChosenColumnsV2", request , config);
|
|
755
|
+
base.WebApiBase.SetCompleted(options);
|
|
756
|
+
const res = response.data;
|
|
757
|
+
resolve(res);
|
|
758
|
+
}
|
|
759
|
+
catch( err ) {
|
|
760
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
761
|
+
reject(err);
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Set the currently chosen columns for the given gui name/provider name combination. This service corresponds to the SetSelected method of the SelectableMDOList service, for a list called archiveColumns: plus the archive provider name and gui name as its additionalInfo.
|
|
770
|
+
* @param request - GuiName, ProviderName, Context, OwnerKeys, ChosenColumns
|
|
771
|
+
* @returns
|
|
772
|
+
*/
|
|
773
|
+
public async setChosenColumnsV2Async(request: carriers.Archive_SetChosenColumnsV2Request, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Set the currently chosen columns for the given gui name/provider name combination. This service corresponds to the SetSelected method of the SelectableMDOList service, for a list called archiveColumns: plus the archive provider name and gui name as its additionalInfo.
|
|
777
|
+
* @param guiName - String that identifies the archive in the GUI, must be the same when fetching and storing configurations, but does not otherwise have to match anything.
|
|
778
|
+
* @param providerName - Name of archive provider, must match one of the plugins known to the ArchiveProviderFactory.
|
|
779
|
+
* @param context - Context parameter, url-encoded string context parameter for ArchiveProvider constructor. Optional, but required for archives that depend on a context - for instance Quote archives that need to know their QuoteConnectionId to be meaningful
|
|
780
|
+
* @param ownerKeys - Name/value string containing ownership binding information. The first should resolve to a table/primarykey, such as selection=123. Future functionality may allow multiple/extended keys
|
|
781
|
+
* @param chosenColumns - Array of column names, where array order indicates left to right order in the archive.
|
|
782
|
+
* @returns
|
|
783
|
+
*/
|
|
784
|
+
public async setChosenColumnsV2Async(guiName: string, providerName: string, context: string, ownerKeys: string, chosenColumns: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
785
|
+
|
|
786
|
+
public async setChosenColumnsV2Async(guiName:string|carriers.Archive_SetChosenColumnsV2Request, providerName?:string|base.WebApiRequestOptions, context?:string, ownerKeys?:string, chosenColumns?:string[], webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
787
|
+
let _request : carriers.Archive_SetChosenColumnsV2Request = null;
|
|
788
|
+
let _options : base.WebApiRequestOptions = null;
|
|
789
|
+
const first : any = guiName;
|
|
790
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.providerName)!='undefined' || typeof(first.context)!='undefined' || typeof(first.ownerKeys)!='undefined' || typeof(first.chosenColumns)!='undefined' ) )
|
|
791
|
+
{
|
|
792
|
+
_request = guiName as carriers.Archive_SetChosenColumnsV2Request;
|
|
793
|
+
_options = providerName as base.WebApiRequestOptions;
|
|
794
|
+
}
|
|
795
|
+
else
|
|
796
|
+
{
|
|
797
|
+
_request = {
|
|
798
|
+
guiName: guiName as string,
|
|
799
|
+
providerName: providerName as string,
|
|
800
|
+
context: context as string,
|
|
801
|
+
ownerKeys: ownerKeys as string,
|
|
802
|
+
chosenColumns: chosenColumns as string[],
|
|
803
|
+
};
|
|
804
|
+
_options = webapi_options;
|
|
805
|
+
}
|
|
806
|
+
return this._setChosenColumnsV2Async( _request, _options );
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
private async _getArchiveListByColumnsAsync(request: carriers.Archive_GetArchiveListByColumnsRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
811
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
812
|
+
base.WebApiBase.SetPending(options);
|
|
813
|
+
return new Promise< carriers.ArchiveListItem[] >(async (resolve, reject) => {
|
|
814
|
+
try {
|
|
815
|
+
config.baseURL = this._options.baseUrl;
|
|
816
|
+
const response = await this._axios.post("GetArchiveListByColumns", request , config);
|
|
817
|
+
base.WebApiBase.SetCompleted(options);
|
|
818
|
+
const res : carriers.ArchiveListItem[] = converters.Create_ArchiveListItemArray_From( response.data );
|
|
819
|
+
resolve(res);
|
|
820
|
+
}
|
|
821
|
+
catch( err ) {
|
|
822
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
823
|
+
reject(err);
|
|
824
|
+
}
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Get a page of results for an archive list, explicitly specifying the restrictions, orderby and chosen columns.
|
|
832
|
+
* @param request - ProviderName, Columns, SortOrder, Restriction, Entities, Page, PageSize
|
|
833
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
834
|
+
*/
|
|
835
|
+
public async getArchiveListByColumnsAsync(request: carriers.Archive_GetArchiveListByColumnsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* Get a page of results for an archive list, explicitly specifying the restrictions, orderby and chosen columns.
|
|
839
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
840
|
+
* @param columns - An array of the names of the columns wanted.
|
|
841
|
+
* @param sortOrder - Sort order for the archive. Can be null, which indicates 'no particular order'
|
|
842
|
+
* @param restriction - Archive restrictions. Archives will generally throw an exception if no restrictions are set. Pass in an empty array if you really do not want restrictions, but remember that you may end up fetching the first page of millions of rows.
|
|
843
|
+
* @param entities - Which entities to include. Can be null, which indicates 'include all entities'
|
|
844
|
+
* @param page - Page number, page 0 is the first page. Negative page numbers are interpreted as number of rows to skip.
|
|
845
|
+
* @param pageSize - Page size, which should be kept reasonable (say, no more than 1000 rows at a time)
|
|
846
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
847
|
+
*/
|
|
848
|
+
public async getArchiveListByColumnsAsync(providerName: string, columns: string[], sortOrder: carriers.ArchiveOrderByInfo[], restriction: carriers.ArchiveRestrictionInfo[], entities: string[], page: number, pageSize: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
849
|
+
|
|
850
|
+
public async getArchiveListByColumnsAsync(providerName:string|carriers.Archive_GetArchiveListByColumnsRequest, columns?:string[]|base.WebApiRequestOptions, sortOrder?:carriers.ArchiveOrderByInfo[], restriction?:carriers.ArchiveRestrictionInfo[], entities?:string[], page?:number, pageSize?:number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
851
|
+
let _request : carriers.Archive_GetArchiveListByColumnsRequest = null;
|
|
852
|
+
let _options : base.WebApiRequestOptions = null;
|
|
853
|
+
const first : any = providerName;
|
|
854
|
+
if( typeof( first ) === "object" && first && ( typeof(first.providerName)!='undefined' || typeof(first.columns)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restriction)!='undefined' || typeof(first.entities)!='undefined' || typeof(first.page)!='undefined' || typeof(first.pageSize)!='undefined' ) )
|
|
855
|
+
{
|
|
856
|
+
_request = providerName as carriers.Archive_GetArchiveListByColumnsRequest;
|
|
857
|
+
_options = columns as base.WebApiRequestOptions;
|
|
858
|
+
}
|
|
859
|
+
else
|
|
860
|
+
{
|
|
861
|
+
_request = {
|
|
862
|
+
providerName: providerName as string,
|
|
863
|
+
columns: columns as string[],
|
|
864
|
+
sortOrder: sortOrder as carriers.ArchiveOrderByInfo[],
|
|
865
|
+
restriction: restriction as carriers.ArchiveRestrictionInfo[],
|
|
866
|
+
entities: entities as string[],
|
|
867
|
+
page: page as number,
|
|
868
|
+
pageSize: pageSize as number,
|
|
869
|
+
};
|
|
870
|
+
_options = webapi_options;
|
|
871
|
+
}
|
|
872
|
+
return this._getArchiveListByColumnsAsync( _request, _options );
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
private async _getArchiveListByColumnsWithContextAsync(request: carriers.Archive_GetArchiveListByColumnsWithContextRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
877
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
878
|
+
base.WebApiBase.SetPending(options);
|
|
879
|
+
return new Promise< carriers.ArchiveListItem[] >(async (resolve, reject) => {
|
|
880
|
+
try {
|
|
881
|
+
config.baseURL = this._options.baseUrl;
|
|
882
|
+
const response = await this._axios.post("GetArchiveListByColumnsWithContext", request , config);
|
|
883
|
+
base.WebApiBase.SetCompleted(options);
|
|
884
|
+
const res : carriers.ArchiveListItem[] = converters.Create_ArchiveListItemArray_From( response.data );
|
|
885
|
+
resolve(res);
|
|
886
|
+
}
|
|
887
|
+
catch( err ) {
|
|
888
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
889
|
+
reject(err);
|
|
890
|
+
}
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Get a page of results for an archive list with context parameter, explicitly specifying the restrictions, orderby and chosen columns.
|
|
898
|
+
* @param request - ProviderName, Columns, SortOrder, Restriction, Entities, Page, PageSize, Context
|
|
899
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
900
|
+
*/
|
|
901
|
+
public async getArchiveListByColumnsWithContextAsync(request: carriers.Archive_GetArchiveListByColumnsWithContextRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Get a page of results for an archive list with context parameter, explicitly specifying the restrictions, orderby and chosen columns.
|
|
905
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
906
|
+
* @param columns - An array of the names of the columns wanted.
|
|
907
|
+
* @param sortOrder - Sort order for the archive. Can be null, which indicates 'no particular order'
|
|
908
|
+
* @param restriction - Archive restrictions. Archives will generally throw an exception if no restrictions are set. Pass in an empty array if you really do not want restrictions, but remember that you may end up fetching the first page of millions of rows.
|
|
909
|
+
* @param entities - Which entities to include. Can be null, which indicates 'include all entities'
|
|
910
|
+
* @param page - Page number, page 0 is the first page. Negative page numbers are interpreted as number of rows to skip.
|
|
911
|
+
* @param pageSize - Page size, which should be kept reasonable (say, no more than 1000 rows at a time)
|
|
912
|
+
* @param context - Context parameter, url-encoded string context parameter for ArchiveProvider constructor
|
|
913
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
914
|
+
*/
|
|
915
|
+
public async getArchiveListByColumnsWithContextAsync(providerName: string, columns: string[], sortOrder: carriers.ArchiveOrderByInfo[], restriction: carriers.ArchiveRestrictionInfo[], entities: string[], page: number, pageSize: number, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
916
|
+
|
|
917
|
+
public async getArchiveListByColumnsWithContextAsync(providerName:string|carriers.Archive_GetArchiveListByColumnsWithContextRequest, columns?:string[]|base.WebApiRequestOptions, sortOrder?:carriers.ArchiveOrderByInfo[], restriction?:carriers.ArchiveRestrictionInfo[], entities?:string[], page?:number, pageSize?:number, context?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
918
|
+
let _request : carriers.Archive_GetArchiveListByColumnsWithContextRequest = null;
|
|
919
|
+
let _options : base.WebApiRequestOptions = null;
|
|
920
|
+
const first : any = providerName;
|
|
921
|
+
if( typeof( first ) === "object" && first && ( typeof(first.providerName)!='undefined' || typeof(first.columns)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restriction)!='undefined' || typeof(first.entities)!='undefined' || typeof(first.page)!='undefined' || typeof(first.pageSize)!='undefined' || typeof(first.context)!='undefined' ) )
|
|
922
|
+
{
|
|
923
|
+
_request = providerName as carriers.Archive_GetArchiveListByColumnsWithContextRequest;
|
|
924
|
+
_options = columns as base.WebApiRequestOptions;
|
|
925
|
+
}
|
|
926
|
+
else
|
|
927
|
+
{
|
|
928
|
+
_request = {
|
|
929
|
+
providerName: providerName as string,
|
|
930
|
+
columns: columns as string[],
|
|
931
|
+
sortOrder: sortOrder as carriers.ArchiveOrderByInfo[],
|
|
932
|
+
restriction: restriction as carriers.ArchiveRestrictionInfo[],
|
|
933
|
+
entities: entities as string[],
|
|
934
|
+
page: page as number,
|
|
935
|
+
pageSize: pageSize as number,
|
|
936
|
+
context: context as string,
|
|
937
|
+
};
|
|
938
|
+
_options = webapi_options;
|
|
939
|
+
}
|
|
940
|
+
return this._getArchiveListByColumnsWithContextAsync( _request, _options );
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
private async _getArchiveListAsync(request: carriers.Archive_GetArchiveListRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
945
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
946
|
+
base.WebApiBase.SetPending(options);
|
|
947
|
+
return new Promise< carriers.ArchiveListItem[] >(async (resolve, reject) => {
|
|
948
|
+
try {
|
|
949
|
+
config.baseURL = this._options.baseUrl;
|
|
950
|
+
const response = await this._axios.post("GetArchiveList", request , config);
|
|
951
|
+
base.WebApiBase.SetCompleted(options);
|
|
952
|
+
const res : carriers.ArchiveListItem[] = converters.Create_ArchiveListItemArray_From( response.data );
|
|
953
|
+
resolve(res);
|
|
954
|
+
}
|
|
955
|
+
catch( err ) {
|
|
956
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
957
|
+
reject(err);
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Get a page of data for an archive. The columns returned will be those set as chosen columns, using either the SetChosenColumns service or the corresponding SelectableMDOList.SetSelected.
|
|
966
|
+
* @param request - GuiName, ProviderName, SortOrder, Restriction, Entities, Page, PageSize
|
|
967
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
968
|
+
*/
|
|
969
|
+
public async getArchiveListAsync(request: carriers.Archive_GetArchiveListRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Get a page of data for an archive. The columns returned will be those set as chosen columns, using either the SetChosenColumns service or the corresponding SelectableMDOList.SetSelected.
|
|
973
|
+
* @param guiName - The GUI name of the archive list, used to retrieve the currently configured set of columns (otherwise manipulated using the ArchiveConfiguration service)
|
|
974
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
975
|
+
* @param sortOrder - Sort order for the archive. Can be null, which indicates 'no particular order'
|
|
976
|
+
* @param restriction - Archive restrictions. Archives will generally throw an exception if no restrictions are set. Pass in an empty array if you really do not want restrictions, but remember that you may end up fetching the first page of millions of rows.
|
|
977
|
+
* @param entities - Which entities to include. Can be null, which indicates 'include all entities'
|
|
978
|
+
* @param page - Page number, page 0 is the first page. Negative page numbers are interpreted as number of rows to skip.
|
|
979
|
+
* @param pageSize - Page size, which should be kept reasonable (say, no more than 1000 rows at a time)
|
|
980
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
981
|
+
*/
|
|
982
|
+
public async getArchiveListAsync(guiName: string, providerName: string, sortOrder: carriers.ArchiveOrderByInfo[], restriction: carriers.ArchiveRestrictionInfo[], entities: string[], page: number, pageSize: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
983
|
+
|
|
984
|
+
public async getArchiveListAsync(guiName:string|carriers.Archive_GetArchiveListRequest, providerName?:string|base.WebApiRequestOptions, sortOrder?:carriers.ArchiveOrderByInfo[], restriction?:carriers.ArchiveRestrictionInfo[], entities?:string[], page?:number, pageSize?:number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
985
|
+
let _request : carriers.Archive_GetArchiveListRequest = null;
|
|
986
|
+
let _options : base.WebApiRequestOptions = null;
|
|
987
|
+
const first : any = guiName;
|
|
988
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.providerName)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restriction)!='undefined' || typeof(first.entities)!='undefined' || typeof(first.page)!='undefined' || typeof(first.pageSize)!='undefined' ) )
|
|
989
|
+
{
|
|
990
|
+
_request = guiName as carriers.Archive_GetArchiveListRequest;
|
|
991
|
+
_options = providerName as base.WebApiRequestOptions;
|
|
992
|
+
}
|
|
993
|
+
else
|
|
994
|
+
{
|
|
995
|
+
_request = {
|
|
996
|
+
guiName: guiName as string,
|
|
997
|
+
providerName: providerName as string,
|
|
998
|
+
sortOrder: sortOrder as carriers.ArchiveOrderByInfo[],
|
|
999
|
+
restriction: restriction as carriers.ArchiveRestrictionInfo[],
|
|
1000
|
+
entities: entities as string[],
|
|
1001
|
+
page: page as number,
|
|
1002
|
+
pageSize: pageSize as number,
|
|
1003
|
+
};
|
|
1004
|
+
_options = webapi_options;
|
|
1005
|
+
}
|
|
1006
|
+
return this._getArchiveListAsync( _request, _options );
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
private async _getArchiveListWithContextAsync(request: carriers.Archive_GetArchiveListWithContextRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
1011
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1012
|
+
base.WebApiBase.SetPending(options);
|
|
1013
|
+
return new Promise< carriers.ArchiveListItem[] >(async (resolve, reject) => {
|
|
1014
|
+
try {
|
|
1015
|
+
config.baseURL = this._options.baseUrl;
|
|
1016
|
+
const response = await this._axios.post("GetArchiveListWithContext", request , config);
|
|
1017
|
+
base.WebApiBase.SetCompleted(options);
|
|
1018
|
+
const res : carriers.ArchiveListItem[] = converters.Create_ArchiveListItemArray_From( response.data );
|
|
1019
|
+
resolve(res);
|
|
1020
|
+
}
|
|
1021
|
+
catch( err ) {
|
|
1022
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1023
|
+
reject(err);
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Get a page of data for an archive, with context parameter. The columns returned will be those set as chosen columns, using either the SetChosenColumns service or the corresponding SelectableMDOList.SetSelected.
|
|
1032
|
+
* @param request - GuiName, ProviderName, SortOrder, Restriction, Entities, Page, PageSize, Context
|
|
1033
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1034
|
+
*/
|
|
1035
|
+
public async getArchiveListWithContextAsync(request: carriers.Archive_GetArchiveListWithContextRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Get a page of data for an archive, with context parameter. The columns returned will be those set as chosen columns, using either the SetChosenColumns service or the corresponding SelectableMDOList.SetSelected.
|
|
1039
|
+
* @param guiName - The GUI name of the archive list, used to retrieve the currently configured set of columns (otherwise manipulated using the ArchiveConfiguration service)
|
|
1040
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
1041
|
+
* @param sortOrder - Sort order for the archive. Can be null, which indicates 'no particular order'
|
|
1042
|
+
* @param restriction - Archive restrictions. Archives will generally throw an exception if no restrictions are set. Pass in an empty array if you really do not want restrictions, but remember that you may end up fetching the first page of millions of rows.
|
|
1043
|
+
* @param entities - Which entities to include. Can be null, which indicates 'include all entities'
|
|
1044
|
+
* @param page - Page number, page 0 is the first page. Negative page numbers are interpreted as number of rows to skip.
|
|
1045
|
+
* @param pageSize - Page size, which should be kept reasonable (say, no more than 1000 rows at a time)
|
|
1046
|
+
* @param context - Context parameter, url-encoded string context parameter for ArchiveProvider constructor
|
|
1047
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1048
|
+
*/
|
|
1049
|
+
public async getArchiveListWithContextAsync(guiName: string, providerName: string, sortOrder: carriers.ArchiveOrderByInfo[], restriction: carriers.ArchiveRestrictionInfo[], entities: string[], page: number, pageSize: number, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
1050
|
+
|
|
1051
|
+
public async getArchiveListWithContextAsync(guiName:string|carriers.Archive_GetArchiveListWithContextRequest, providerName?:string|base.WebApiRequestOptions, sortOrder?:carriers.ArchiveOrderByInfo[], restriction?:carriers.ArchiveRestrictionInfo[], entities?:string[], page?:number, pageSize?:number, context?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
1052
|
+
let _request : carriers.Archive_GetArchiveListWithContextRequest = null;
|
|
1053
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1054
|
+
const first : any = guiName;
|
|
1055
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.providerName)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restriction)!='undefined' || typeof(first.entities)!='undefined' || typeof(first.page)!='undefined' || typeof(first.pageSize)!='undefined' || typeof(first.context)!='undefined' ) )
|
|
1056
|
+
{
|
|
1057
|
+
_request = guiName as carriers.Archive_GetArchiveListWithContextRequest;
|
|
1058
|
+
_options = providerName as base.WebApiRequestOptions;
|
|
1059
|
+
}
|
|
1060
|
+
else
|
|
1061
|
+
{
|
|
1062
|
+
_request = {
|
|
1063
|
+
guiName: guiName as string,
|
|
1064
|
+
providerName: providerName as string,
|
|
1065
|
+
sortOrder: sortOrder as carriers.ArchiveOrderByInfo[],
|
|
1066
|
+
restriction: restriction as carriers.ArchiveRestrictionInfo[],
|
|
1067
|
+
entities: entities as string[],
|
|
1068
|
+
page: page as number,
|
|
1069
|
+
pageSize: pageSize as number,
|
|
1070
|
+
context: context as string,
|
|
1071
|
+
};
|
|
1072
|
+
_options = webapi_options;
|
|
1073
|
+
}
|
|
1074
|
+
return this._getArchiveListWithContextAsync( _request, _options );
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
private async _getArchiveListByColumnsWithHeaderAsync(request: carriers.Archive_GetArchiveListByColumnsWithHeaderRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult > {
|
|
1079
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1080
|
+
base.WebApiBase.SetPending(options);
|
|
1081
|
+
return new Promise< carriers.ArchiveListResult >(async (resolve, reject) => {
|
|
1082
|
+
try {
|
|
1083
|
+
config.baseURL = this._options.baseUrl;
|
|
1084
|
+
const response = await this._axios.post("GetArchiveListByColumnsWithHeader", request , config);
|
|
1085
|
+
base.WebApiBase.SetCompleted(options);
|
|
1086
|
+
const res : carriers.ArchiveListResult = converters.Create_ArchiveListResult_From( response.data );
|
|
1087
|
+
resolve(res);
|
|
1088
|
+
}
|
|
1089
|
+
catch( err ) {
|
|
1090
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1091
|
+
reject(err);
|
|
1092
|
+
}
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* Get a page of results for an archive list, explicitly specifying the restrictions, orderby and chosen columns; as well as a name/value string formatted set of options. The return value includes a header that has various extra information, in addition to the actual rows.
|
|
1100
|
+
* @param request - ProviderName, Columns, SortOrder, Restriction, Entities, Page, PageSize, Options
|
|
1101
|
+
* @returns Header with optional row count, plus array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1102
|
+
*/
|
|
1103
|
+
public async getArchiveListByColumnsWithHeaderAsync(request: carriers.Archive_GetArchiveListByColumnsWithHeaderRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Get a page of results for an archive list, explicitly specifying the restrictions, orderby and chosen columns; as well as a name/value string formatted set of options. The return value includes a header that has various extra information, in addition to the actual rows.
|
|
1107
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
1108
|
+
* @param columns - An array of the names of the columns wanted.
|
|
1109
|
+
* @param sortOrder - Sort order for the archive. Can be null, which indicates 'no particular order'
|
|
1110
|
+
* @param restriction - Archive restrictions. Archives will generally throw an exception if no restrictions are set. Pass in an empty array if you really do not want restrictions, but remember that you may end up fetching the first page of millions of rows.
|
|
1111
|
+
* @param entities - Which entities to include. Can be null, which indicates 'include all entities'
|
|
1112
|
+
* @param page - Page number, page 0 is the first page. Negative page numbers are interpreted as number of rows to skip.
|
|
1113
|
+
* @param pageSize - Page size, which should be kept reasonable (say, no more than 1000 rows at a time)
|
|
1114
|
+
* @param options - name=value&... formatted set of options. "rowcount=true" will cause the rowcount to be calculated and populated.
|
|
1115
|
+
* @returns Header with optional row count, plus array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1116
|
+
*/
|
|
1117
|
+
public async getArchiveListByColumnsWithHeaderAsync(providerName: string, columns: string[], sortOrder: carriers.ArchiveOrderByInfo[], restriction: carriers.ArchiveRestrictionInfo[], entities: string[], page: number, pageSize: number, options: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
1118
|
+
|
|
1119
|
+
public async getArchiveListByColumnsWithHeaderAsync(providerName:string|carriers.Archive_GetArchiveListByColumnsWithHeaderRequest, columns?:string[]|base.WebApiRequestOptions, sortOrder?:carriers.ArchiveOrderByInfo[], restriction?:carriers.ArchiveRestrictionInfo[], entities?:string[], page?:number, pageSize?:number, options?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult > {
|
|
1120
|
+
let _request : carriers.Archive_GetArchiveListByColumnsWithHeaderRequest = null;
|
|
1121
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1122
|
+
const first : any = providerName;
|
|
1123
|
+
if( typeof( first ) === "object" && first && ( typeof(first.providerName)!='undefined' || typeof(first.columns)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restriction)!='undefined' || typeof(first.entities)!='undefined' || typeof(first.page)!='undefined' || typeof(first.pageSize)!='undefined' || typeof(first.options)!='undefined' ) )
|
|
1124
|
+
{
|
|
1125
|
+
_request = providerName as carriers.Archive_GetArchiveListByColumnsWithHeaderRequest;
|
|
1126
|
+
_options = columns as base.WebApiRequestOptions;
|
|
1127
|
+
}
|
|
1128
|
+
else
|
|
1129
|
+
{
|
|
1130
|
+
_request = {
|
|
1131
|
+
providerName: providerName as string,
|
|
1132
|
+
columns: columns as string[],
|
|
1133
|
+
sortOrder: sortOrder as carriers.ArchiveOrderByInfo[],
|
|
1134
|
+
restriction: restriction as carriers.ArchiveRestrictionInfo[],
|
|
1135
|
+
entities: entities as string[],
|
|
1136
|
+
page: page as number,
|
|
1137
|
+
pageSize: pageSize as number,
|
|
1138
|
+
options: options as string,
|
|
1139
|
+
};
|
|
1140
|
+
_options = webapi_options;
|
|
1141
|
+
}
|
|
1142
|
+
return this._getArchiveListByColumnsWithHeaderAsync( _request, _options );
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
private async _getProviderNamesAsync( options?:base.WebApiRequestOptions) : Promise< string[] > {
|
|
1147
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1148
|
+
base.WebApiBase.SetPending(options);
|
|
1149
|
+
return new Promise< string[] >(async (resolve, reject) => {
|
|
1150
|
+
try {
|
|
1151
|
+
config.baseURL = this._options.baseUrl;
|
|
1152
|
+
const response = await this._axios.post("GetProviderNames", undefined , config);
|
|
1153
|
+
base.WebApiBase.SetCompleted(options);
|
|
1154
|
+
const res : string[] = response.data as string[];
|
|
1155
|
+
resolve(res);
|
|
1156
|
+
}
|
|
1157
|
+
catch( err ) {
|
|
1158
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1159
|
+
reject(err);
|
|
1160
|
+
}
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* Return list of all archive provider names
|
|
1167
|
+
* @returns Array of all archive provider names.
|
|
1168
|
+
*/
|
|
1169
|
+
public async getProviderNamesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string[] >
|
|
1170
|
+
{
|
|
1171
|
+
return this._getProviderNamesAsync(webapi_options);
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
private async _getArchiveListByColumnsWithHeaderWithContextAsync(request: carriers.Archive_GetArchiveListByColumnsWithHeaderWithContextRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult > {
|
|
1176
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1177
|
+
base.WebApiBase.SetPending(options);
|
|
1178
|
+
return new Promise< carriers.ArchiveListResult >(async (resolve, reject) => {
|
|
1179
|
+
try {
|
|
1180
|
+
config.baseURL = this._options.baseUrl;
|
|
1181
|
+
const response = await this._axios.post("GetArchiveListByColumnsWithHeaderWithContext", request , config);
|
|
1182
|
+
base.WebApiBase.SetCompleted(options);
|
|
1183
|
+
const res : carriers.ArchiveListResult = converters.Create_ArchiveListResult_From( response.data );
|
|
1184
|
+
resolve(res);
|
|
1185
|
+
}
|
|
1186
|
+
catch( err ) {
|
|
1187
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1188
|
+
reject(err);
|
|
1189
|
+
}
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* Get a page of results for an archive list, with context parameter, explicitly specifying the restrictions, orderby and chosen columns; as well as a name/value string formatted set of options. The return value includes a header that has various extra information, in addition to the actual rows.
|
|
1197
|
+
* @param request - ProviderName, Columns, SortOrder, Restriction, Entities, Page, PageSize, Options, Context
|
|
1198
|
+
* @returns Header with optional row count, plus array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1199
|
+
*/
|
|
1200
|
+
public async getArchiveListByColumnsWithHeaderWithContextAsync(request: carriers.Archive_GetArchiveListByColumnsWithHeaderWithContextRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Get a page of results for an archive list, with context parameter, explicitly specifying the restrictions, orderby and chosen columns; as well as a name/value string formatted set of options. The return value includes a header that has various extra information, in addition to the actual rows.
|
|
1204
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
1205
|
+
* @param columns - An array of the names of the columns wanted.
|
|
1206
|
+
* @param sortOrder - Sort order for the archive. Can be null, which indicates 'no particular order'
|
|
1207
|
+
* @param restriction - Archive restrictions. Archives will generally throw an exception if no restrictions are set. Pass in an empty array if you really do not want restrictions, but remember that you may end up fetching the first page of millions of rows.
|
|
1208
|
+
* @param entities - Which entities to include. Can be null, which indicates 'include all entities'
|
|
1209
|
+
* @param page - Page number, page 0 is the first page. Negative page numbers are interpreted as number of rows to skip.
|
|
1210
|
+
* @param pageSize - Page size, which should be kept reasonable (say, no more than 1000 rows at a time)
|
|
1211
|
+
* @param options - name=value&... formatted set of options. "rowcount=true" will cause the rowcount to be calculated and populated.
|
|
1212
|
+
* @param context - Context parameter, url-encoded string context parameter for ArchiveProvider constructor
|
|
1213
|
+
* @returns Header with optional row count, plus array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1214
|
+
*/
|
|
1215
|
+
public async getArchiveListByColumnsWithHeaderWithContextAsync(providerName: string, columns: string[], sortOrder: carriers.ArchiveOrderByInfo[], restriction: carriers.ArchiveRestrictionInfo[], entities: string[], page: number, pageSize: number, options: string, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
1216
|
+
|
|
1217
|
+
public async getArchiveListByColumnsWithHeaderWithContextAsync(providerName:string|carriers.Archive_GetArchiveListByColumnsWithHeaderWithContextRequest, columns?:string[]|base.WebApiRequestOptions, sortOrder?:carriers.ArchiveOrderByInfo[], restriction?:carriers.ArchiveRestrictionInfo[], entities?:string[], page?:number, pageSize?:number, options?:string, context?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult > {
|
|
1218
|
+
let _request : carriers.Archive_GetArchiveListByColumnsWithHeaderWithContextRequest = null;
|
|
1219
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1220
|
+
const first : any = providerName;
|
|
1221
|
+
if( typeof( first ) === "object" && first && ( typeof(first.providerName)!='undefined' || typeof(first.columns)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restriction)!='undefined' || typeof(first.entities)!='undefined' || typeof(first.page)!='undefined' || typeof(first.pageSize)!='undefined' || typeof(first.options)!='undefined' || typeof(first.context)!='undefined' ) )
|
|
1222
|
+
{
|
|
1223
|
+
_request = providerName as carriers.Archive_GetArchiveListByColumnsWithHeaderWithContextRequest;
|
|
1224
|
+
_options = columns as base.WebApiRequestOptions;
|
|
1225
|
+
}
|
|
1226
|
+
else
|
|
1227
|
+
{
|
|
1228
|
+
_request = {
|
|
1229
|
+
providerName: providerName as string,
|
|
1230
|
+
columns: columns as string[],
|
|
1231
|
+
sortOrder: sortOrder as carriers.ArchiveOrderByInfo[],
|
|
1232
|
+
restriction: restriction as carriers.ArchiveRestrictionInfo[],
|
|
1233
|
+
entities: entities as string[],
|
|
1234
|
+
page: page as number,
|
|
1235
|
+
pageSize: pageSize as number,
|
|
1236
|
+
options: options as string,
|
|
1237
|
+
context: context as string,
|
|
1238
|
+
};
|
|
1239
|
+
_options = webapi_options;
|
|
1240
|
+
}
|
|
1241
|
+
return this._getArchiveListByColumnsWithHeaderWithContextAsync( _request, _options );
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
private async _getAvailableColumnsAsync(request: carriers.Archive_GetAvailableColumnsRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveColumnInfo[] > {
|
|
1246
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1247
|
+
base.WebApiBase.SetPending(options);
|
|
1248
|
+
return new Promise< carriers.ArchiveColumnInfo[] >(async (resolve, reject) => {
|
|
1249
|
+
try {
|
|
1250
|
+
config.baseURL = this._options.baseUrl;
|
|
1251
|
+
const response = await this._axios.post("GetAvailableColumns", request , config);
|
|
1252
|
+
base.WebApiBase.SetCompleted(options);
|
|
1253
|
+
const res : carriers.ArchiveColumnInfo[] = converters.Create_ArchiveColumnInfoArray_From( response.data );
|
|
1254
|
+
resolve(res);
|
|
1255
|
+
}
|
|
1256
|
+
catch( err ) {
|
|
1257
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1258
|
+
reject(err);
|
|
1259
|
+
}
|
|
1260
|
+
});
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* Return list of all columns supported by an archive provider. See also GetArchiveConfiguration.
|
|
1267
|
+
* @param request - ProviderName, Context
|
|
1268
|
+
* @returns Array of all columns supported by the archive provider.
|
|
1269
|
+
*/
|
|
1270
|
+
public async getAvailableColumnsAsync(request: carriers.Archive_GetAvailableColumnsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveColumnInfo[] >;
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Return list of all columns supported by an archive provider. See also GetArchiveConfiguration.
|
|
1274
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
1275
|
+
* @param context - Optional context parameter, url-encoded string context parameter for ArchiveProvider constructor
|
|
1276
|
+
* @returns Array of all columns supported by the archive provider.
|
|
1277
|
+
*/
|
|
1278
|
+
public async getAvailableColumnsAsync(providerName: string, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveColumnInfo[] >;
|
|
1279
|
+
|
|
1280
|
+
public async getAvailableColumnsAsync(providerName:string|carriers.Archive_GetAvailableColumnsRequest, context?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveColumnInfo[] > {
|
|
1281
|
+
let _request : carriers.Archive_GetAvailableColumnsRequest = null;
|
|
1282
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1283
|
+
const first : any = providerName;
|
|
1284
|
+
if( typeof( first ) === "object" && first && ( typeof(first.providerName)!='undefined' || typeof(first.context)!='undefined' ) )
|
|
1285
|
+
{
|
|
1286
|
+
_request = providerName as carriers.Archive_GetAvailableColumnsRequest;
|
|
1287
|
+
_options = context as base.WebApiRequestOptions;
|
|
1288
|
+
}
|
|
1289
|
+
else
|
|
1290
|
+
{
|
|
1291
|
+
_request = {
|
|
1292
|
+
providerName: providerName as string,
|
|
1293
|
+
context: context as string,
|
|
1294
|
+
};
|
|
1295
|
+
_options = webapi_options;
|
|
1296
|
+
}
|
|
1297
|
+
return this._getAvailableColumnsAsync( _request, _options );
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
private async _getAvailableEntitiesAsync(request: carriers.Archive_GetAvailableEntitiesRequest, options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] > {
|
|
1302
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1303
|
+
base.WebApiBase.SetPending(options);
|
|
1304
|
+
return new Promise< carriers.MDOListItem[] >(async (resolve, reject) => {
|
|
1305
|
+
try {
|
|
1306
|
+
config.baseURL = this._options.baseUrl;
|
|
1307
|
+
const response = await this._axios.post("GetAvailableEntities", request , config);
|
|
1308
|
+
base.WebApiBase.SetCompleted(options);
|
|
1309
|
+
const res : carriers.MDOListItem[] = converters.Create_MDOListItemArray_From( response.data );
|
|
1310
|
+
resolve(res);
|
|
1311
|
+
}
|
|
1312
|
+
catch( err ) {
|
|
1313
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1314
|
+
reject(err);
|
|
1315
|
+
}
|
|
1316
|
+
});
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Return list of all entities supported by an archive provider. See also GetArchiveConfiguration.
|
|
1323
|
+
* @param request - ProviderName, Context
|
|
1324
|
+
* @returns Array of all entity types supported by the archive provider. MDOListItem.Name = DisplayName, Tooltip = DisplayTooltip, Type = code name, StyleHint = optional/mandatory, IconHint=DefaultShow
|
|
1325
|
+
*/
|
|
1326
|
+
public async getAvailableEntitiesAsync(request: carriers.Archive_GetAvailableEntitiesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] >;
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Return list of all entities supported by an archive provider. See also GetArchiveConfiguration.
|
|
1330
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
1331
|
+
* @param context - Optional context parameter, url-encoded string context parameter for ArchiveProvider constructor
|
|
1332
|
+
* @returns Array of all entity types supported by the archive provider. MDOListItem.Name = DisplayName, Tooltip = DisplayTooltip, Type = code name, StyleHint = optional/mandatory, IconHint=DefaultShow
|
|
1333
|
+
*/
|
|
1334
|
+
public async getAvailableEntitiesAsync(providerName: string, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] >;
|
|
1335
|
+
|
|
1336
|
+
public async getAvailableEntitiesAsync(providerName:string|carriers.Archive_GetAvailableEntitiesRequest, context?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] > {
|
|
1337
|
+
let _request : carriers.Archive_GetAvailableEntitiesRequest = null;
|
|
1338
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1339
|
+
const first : any = providerName;
|
|
1340
|
+
if( typeof( first ) === "object" && first && ( typeof(first.providerName)!='undefined' || typeof(first.context)!='undefined' ) )
|
|
1341
|
+
{
|
|
1342
|
+
_request = providerName as carriers.Archive_GetAvailableEntitiesRequest;
|
|
1343
|
+
_options = context as base.WebApiRequestOptions;
|
|
1344
|
+
}
|
|
1345
|
+
else
|
|
1346
|
+
{
|
|
1347
|
+
_request = {
|
|
1348
|
+
providerName: providerName as string,
|
|
1349
|
+
context: context as string,
|
|
1350
|
+
};
|
|
1351
|
+
_options = webapi_options;
|
|
1352
|
+
}
|
|
1353
|
+
return this._getAvailableEntitiesAsync( _request, _options );
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
private async _getArchiveListByColumns2Async(request: carriers.Archive_GetArchiveListByColumns2Request, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
1358
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1359
|
+
base.WebApiBase.SetPending(options);
|
|
1360
|
+
return new Promise< carriers.ArchiveListItem[] >(async (resolve, reject) => {
|
|
1361
|
+
try {
|
|
1362
|
+
config.baseURL = this._options.baseUrl;
|
|
1363
|
+
const response = await this._axios.post("GetArchiveListByColumns2", request , config);
|
|
1364
|
+
base.WebApiBase.SetCompleted(options);
|
|
1365
|
+
const res : carriers.ArchiveListItem[] = converters.Create_ArchiveListItemArray_From( response.data );
|
|
1366
|
+
resolve(res);
|
|
1367
|
+
}
|
|
1368
|
+
catch( err ) {
|
|
1369
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1370
|
+
reject(err);
|
|
1371
|
+
}
|
|
1372
|
+
});
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* Get a page of results for an archive list, explicitly specifying the restrictions as a string, orderby and chosen columns.
|
|
1379
|
+
* @param request - ProviderName, Columns, SortOrder, Restrictions, Entities, Page, PageSize
|
|
1380
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1381
|
+
*/
|
|
1382
|
+
public async getArchiveListByColumns2Async(request: carriers.Archive_GetArchiveListByColumns2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* Get a page of results for an archive list, explicitly specifying the restrictions as a string, orderby and chosen columns.
|
|
1386
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
1387
|
+
* @param columns - An array of the names of the columns wanted.
|
|
1388
|
+
* @param sortOrder - Sort order for the archive as string ('name asc, dept desc'). Can be null, which indicates 'no particular order'
|
|
1389
|
+
* @param restrictions - Archive restrictions as string ('category = 1 and business oneOf (1,2,3)'). Archives will generally throw an exception if no restrictions are set. Pass in an empty array if you really do not want restrictions, but remember that you may end up fetching the first page of millions of rows.
|
|
1390
|
+
* @param entities - Comma separated list of entities to include. Can be null, which indicates 'include all entities'
|
|
1391
|
+
* @param page - Page number, page 0 is the first page. Negative page numbers are interpreted as number of rows to skip.
|
|
1392
|
+
* @param pageSize - Page size, which should be kept reasonable (say, no more than 1000 rows at a time)
|
|
1393
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1394
|
+
*/
|
|
1395
|
+
public async getArchiveListByColumns2Async(providerName: string, columns: string, sortOrder: string, restrictions: string, entities: string, page: number, pageSize: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
1396
|
+
|
|
1397
|
+
public async getArchiveListByColumns2Async(providerName:string|carriers.Archive_GetArchiveListByColumns2Request, columns?:string|base.WebApiRequestOptions, sortOrder?:string, restrictions?:string, entities?:string, page?:number, pageSize?:number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
1398
|
+
let _request : carriers.Archive_GetArchiveListByColumns2Request = null;
|
|
1399
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1400
|
+
const first : any = providerName;
|
|
1401
|
+
if( typeof( first ) === "object" && first && ( typeof(first.providerName)!='undefined' || typeof(first.columns)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restrictions)!='undefined' || typeof(first.entities)!='undefined' || typeof(first.page)!='undefined' || typeof(first.pageSize)!='undefined' ) )
|
|
1402
|
+
{
|
|
1403
|
+
_request = providerName as carriers.Archive_GetArchiveListByColumns2Request;
|
|
1404
|
+
_options = columns as base.WebApiRequestOptions;
|
|
1405
|
+
}
|
|
1406
|
+
else
|
|
1407
|
+
{
|
|
1408
|
+
_request = {
|
|
1409
|
+
providerName: providerName as string,
|
|
1410
|
+
columns: columns as string,
|
|
1411
|
+
sortOrder: sortOrder as string,
|
|
1412
|
+
restrictions: restrictions as string,
|
|
1413
|
+
entities: entities as string,
|
|
1414
|
+
page: page as number,
|
|
1415
|
+
pageSize: pageSize as number,
|
|
1416
|
+
};
|
|
1417
|
+
_options = webapi_options;
|
|
1418
|
+
}
|
|
1419
|
+
return this._getArchiveListByColumns2Async( _request, _options );
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
private async _getArchiveListByColumnsWithContext2Async(request: carriers.Archive_GetArchiveListByColumnsWithContext2Request, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
1424
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1425
|
+
base.WebApiBase.SetPending(options);
|
|
1426
|
+
return new Promise< carriers.ArchiveListItem[] >(async (resolve, reject) => {
|
|
1427
|
+
try {
|
|
1428
|
+
config.baseURL = this._options.baseUrl;
|
|
1429
|
+
const response = await this._axios.post("GetArchiveListByColumnsWithContext2", request , config);
|
|
1430
|
+
base.WebApiBase.SetCompleted(options);
|
|
1431
|
+
const res : carriers.ArchiveListItem[] = converters.Create_ArchiveListItemArray_From( response.data );
|
|
1432
|
+
resolve(res);
|
|
1433
|
+
}
|
|
1434
|
+
catch( err ) {
|
|
1435
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1436
|
+
reject(err);
|
|
1437
|
+
}
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* Get a page of results for an archive list with context parameter, explicitly specifying the restrictions as a string, orderby and chosen columns.
|
|
1445
|
+
* @param request - ProviderName, Columns, SortOrder, Restriction, Entities, Page, PageSize, Context
|
|
1446
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1447
|
+
*/
|
|
1448
|
+
public async getArchiveListByColumnsWithContext2Async(request: carriers.Archive_GetArchiveListByColumnsWithContext2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* Get a page of results for an archive list with context parameter, explicitly specifying the restrictions as a string, orderby and chosen columns.
|
|
1452
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
1453
|
+
* @param columns - Comma separated names of the columns wanted.
|
|
1454
|
+
* @param sortOrder - Comma separated list of columns to sort order for the archive. e.g.: "name asc, dept desc, registeredBy" Can be null, which indicates 'no particular order'
|
|
1455
|
+
* @param restriction - Archive restrictions as string. e.g. "name startsWith 'foo' and (dept = 'bar' or dept = 'baz')" Archives will generally throw an exception if no restrictions are set. Pass in an empty array if you really do not want restrictions, but remember that you may end up fetching the first page of millions of rows.
|
|
1456
|
+
* @param entities - Comma separated list of entities to include. Can be null, which indicates 'include all entities'
|
|
1457
|
+
* @param page - Page number, page 0 is the first page. Negative page numbers are interpreted as number of rows to skip.
|
|
1458
|
+
* @param pageSize - Page size, which should be kept reasonable (say, no more than 1000 rows at a time)
|
|
1459
|
+
* @param context - Context parameter, url-encoded string context parameter for ArchiveProvider constructor
|
|
1460
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1461
|
+
*/
|
|
1462
|
+
public async getArchiveListByColumnsWithContext2Async(providerName: string, columns: string, sortOrder: string, restriction: string, entities: string, page: number, pageSize: number, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
1463
|
+
|
|
1464
|
+
public async getArchiveListByColumnsWithContext2Async(providerName:string|carriers.Archive_GetArchiveListByColumnsWithContext2Request, columns?:string|base.WebApiRequestOptions, sortOrder?:string, restriction?:string, entities?:string, page?:number, pageSize?:number, context?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
1465
|
+
let _request : carriers.Archive_GetArchiveListByColumnsWithContext2Request = null;
|
|
1466
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1467
|
+
const first : any = providerName;
|
|
1468
|
+
if( typeof( first ) === "object" && first && ( typeof(first.providerName)!='undefined' || typeof(first.columns)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restriction)!='undefined' || typeof(first.entities)!='undefined' || typeof(first.page)!='undefined' || typeof(first.pageSize)!='undefined' || typeof(first.context)!='undefined' ) )
|
|
1469
|
+
{
|
|
1470
|
+
_request = providerName as carriers.Archive_GetArchiveListByColumnsWithContext2Request;
|
|
1471
|
+
_options = columns as base.WebApiRequestOptions;
|
|
1472
|
+
}
|
|
1473
|
+
else
|
|
1474
|
+
{
|
|
1475
|
+
_request = {
|
|
1476
|
+
providerName: providerName as string,
|
|
1477
|
+
columns: columns as string,
|
|
1478
|
+
sortOrder: sortOrder as string,
|
|
1479
|
+
restriction: restriction as string,
|
|
1480
|
+
entities: entities as string,
|
|
1481
|
+
page: page as number,
|
|
1482
|
+
pageSize: pageSize as number,
|
|
1483
|
+
context: context as string,
|
|
1484
|
+
};
|
|
1485
|
+
_options = webapi_options;
|
|
1486
|
+
}
|
|
1487
|
+
return this._getArchiveListByColumnsWithContext2Async( _request, _options );
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
private async _getArchiveList2Async(request: carriers.Archive_GetArchiveList2Request, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
1492
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1493
|
+
base.WebApiBase.SetPending(options);
|
|
1494
|
+
return new Promise< carriers.ArchiveListItem[] >(async (resolve, reject) => {
|
|
1495
|
+
try {
|
|
1496
|
+
config.baseURL = this._options.baseUrl;
|
|
1497
|
+
const response = await this._axios.post("GetArchiveList2", request , config);
|
|
1498
|
+
base.WebApiBase.SetCompleted(options);
|
|
1499
|
+
const res : carriers.ArchiveListItem[] = converters.Create_ArchiveListItemArray_From( response.data );
|
|
1500
|
+
resolve(res);
|
|
1501
|
+
}
|
|
1502
|
+
catch( err ) {
|
|
1503
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1504
|
+
reject(err);
|
|
1505
|
+
}
|
|
1506
|
+
});
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* Get a page of data for an archive using a restriction string. The columns returned will be those set as chosen columns, using either the SetChosenColumns service or the corresponding SelectableMDOList.SetSelected.
|
|
1513
|
+
* @param request - GuiName, ProviderName, SortOrder, Restriction, Entities, Page, PageSize
|
|
1514
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1515
|
+
*/
|
|
1516
|
+
public async getArchiveList2Async(request: carriers.Archive_GetArchiveList2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* Get a page of data for an archive using a restriction string. The columns returned will be those set as chosen columns, using either the SetChosenColumns service or the corresponding SelectableMDOList.SetSelected.
|
|
1520
|
+
* @param guiName - The GUI name of the archive list, used to retrieve the currently configured set of columns (otherwise manipulated using the ArchiveConfiguration service)
|
|
1521
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
1522
|
+
* @param sortOrder - Sort order for the archive. Can be null, which indicates 'no particular order'
|
|
1523
|
+
* @param restriction - Archive restrictions as string. e.g. "name = 'baz' or category oneOf (1,2,3)". Archives will generally throw an exception if no restrictions are set. Pass in an empty array if you really do not want restrictions, but remember that you may end up fetching the first page of millions of rows.
|
|
1524
|
+
* @param entities - Comma separated list of entities to include. Can be null, which indicates 'include all entities'
|
|
1525
|
+
* @param page - Page number, page 0 is the first page. Negative page numbers are interpreted as number of rows to skip.
|
|
1526
|
+
* @param pageSize - Page size, which should be kept reasonable (say, no more than 1000 rows at a time)
|
|
1527
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1528
|
+
*/
|
|
1529
|
+
public async getArchiveList2Async(guiName: string, providerName: string, sortOrder: string, restriction: string, entities: string, page: number, pageSize: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
1530
|
+
|
|
1531
|
+
public async getArchiveList2Async(guiName:string|carriers.Archive_GetArchiveList2Request, providerName?:string|base.WebApiRequestOptions, sortOrder?:string, restriction?:string, entities?:string, page?:number, pageSize?:number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
1532
|
+
let _request : carriers.Archive_GetArchiveList2Request = null;
|
|
1533
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1534
|
+
const first : any = guiName;
|
|
1535
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.providerName)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restriction)!='undefined' || typeof(first.entities)!='undefined' || typeof(first.page)!='undefined' || typeof(first.pageSize)!='undefined' ) )
|
|
1536
|
+
{
|
|
1537
|
+
_request = guiName as carriers.Archive_GetArchiveList2Request;
|
|
1538
|
+
_options = providerName as base.WebApiRequestOptions;
|
|
1539
|
+
}
|
|
1540
|
+
else
|
|
1541
|
+
{
|
|
1542
|
+
_request = {
|
|
1543
|
+
guiName: guiName as string,
|
|
1544
|
+
providerName: providerName as string,
|
|
1545
|
+
sortOrder: sortOrder as string,
|
|
1546
|
+
restriction: restriction as string,
|
|
1547
|
+
entities: entities as string,
|
|
1548
|
+
page: page as number,
|
|
1549
|
+
pageSize: pageSize as number,
|
|
1550
|
+
};
|
|
1551
|
+
_options = webapi_options;
|
|
1552
|
+
}
|
|
1553
|
+
return this._getArchiveList2Async( _request, _options );
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
private async _getArchiveListWithContext2Async(request: carriers.Archive_GetArchiveListWithContext2Request, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
1558
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1559
|
+
base.WebApiBase.SetPending(options);
|
|
1560
|
+
return new Promise< carriers.ArchiveListItem[] >(async (resolve, reject) => {
|
|
1561
|
+
try {
|
|
1562
|
+
config.baseURL = this._options.baseUrl;
|
|
1563
|
+
const response = await this._axios.post("GetArchiveListWithContext2", request , config);
|
|
1564
|
+
base.WebApiBase.SetCompleted(options);
|
|
1565
|
+
const res : carriers.ArchiveListItem[] = converters.Create_ArchiveListItemArray_From( response.data );
|
|
1566
|
+
resolve(res);
|
|
1567
|
+
}
|
|
1568
|
+
catch( err ) {
|
|
1569
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1570
|
+
reject(err);
|
|
1571
|
+
}
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* Get a page of data for an archive using restrictions as strings, with context parameter. The columns returned will be those set as chosen columns, using either the SetChosenColumns service or the corresponding SelectableMDOList.SetSelected.
|
|
1579
|
+
* @param request - GuiName, ProviderName, SortOrder, Restriction, Entities, Page, PageSize, Context
|
|
1580
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1581
|
+
*/
|
|
1582
|
+
public async getArchiveListWithContext2Async(request: carriers.Archive_GetArchiveListWithContext2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* Get a page of data for an archive using restrictions as strings, with context parameter. The columns returned will be those set as chosen columns, using either the SetChosenColumns service or the corresponding SelectableMDOList.SetSelected.
|
|
1586
|
+
* @param guiName - The GUI name of the archive list, used to retrieve the currently configured set of columns (otherwise manipulated using the ArchiveConfiguration service)
|
|
1587
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
1588
|
+
* @param sortOrder - Sort order for the archive. e.g. "name asc, dept desc" Can be null, which indicates 'no particular order'
|
|
1589
|
+
* @param restriction - Archive restrictions as string. e.g. "name gt 'B' or dept = 'baz'" Archives will generally throw an exception if no restrictions are set. Pass in an empty array if you really do not want restrictions, but remember that you may end up fetching the first page of millions of rows.
|
|
1590
|
+
* @param entities - Comma separated list of entities to include. Can be null, which indicates 'include all entities'
|
|
1591
|
+
* @param page - Page number, page 0 is the first page. Negative page numbers are interpreted as number of rows to skip.
|
|
1592
|
+
* @param pageSize - Page size, which should be kept reasonable (say, no more than 1000 rows at a time)
|
|
1593
|
+
* @param context - Context parameter, url-encoded string context parameter for ArchiveProvider constructor
|
|
1594
|
+
* @returns Array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1595
|
+
*/
|
|
1596
|
+
public async getArchiveListWithContext2Async(guiName: string, providerName: string, sortOrder: string, restriction: string, entities: string, page: number, pageSize: number, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] >;
|
|
1597
|
+
|
|
1598
|
+
public async getArchiveListWithContext2Async(guiName:string|carriers.Archive_GetArchiveListWithContext2Request, providerName?:string|base.WebApiRequestOptions, sortOrder?:string, restriction?:string, entities?:string, page?:number, pageSize?:number, context?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListItem[] > {
|
|
1599
|
+
let _request : carriers.Archive_GetArchiveListWithContext2Request = null;
|
|
1600
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1601
|
+
const first : any = guiName;
|
|
1602
|
+
if( typeof( first ) === "object" && first && ( typeof(first.guiName)!='undefined' || typeof(first.providerName)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restriction)!='undefined' || typeof(first.entities)!='undefined' || typeof(first.page)!='undefined' || typeof(first.pageSize)!='undefined' || typeof(first.context)!='undefined' ) )
|
|
1603
|
+
{
|
|
1604
|
+
_request = guiName as carriers.Archive_GetArchiveListWithContext2Request;
|
|
1605
|
+
_options = providerName as base.WebApiRequestOptions;
|
|
1606
|
+
}
|
|
1607
|
+
else
|
|
1608
|
+
{
|
|
1609
|
+
_request = {
|
|
1610
|
+
guiName: guiName as string,
|
|
1611
|
+
providerName: providerName as string,
|
|
1612
|
+
sortOrder: sortOrder as string,
|
|
1613
|
+
restriction: restriction as string,
|
|
1614
|
+
entities: entities as string,
|
|
1615
|
+
page: page as number,
|
|
1616
|
+
pageSize: pageSize as number,
|
|
1617
|
+
context: context as string,
|
|
1618
|
+
};
|
|
1619
|
+
_options = webapi_options;
|
|
1620
|
+
}
|
|
1621
|
+
return this._getArchiveListWithContext2Async( _request, _options );
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
private async _getArchiveListByColumnsWithHeader2Async(request: carriers.Archive_GetArchiveListByColumnsWithHeader2Request, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult > {
|
|
1626
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1627
|
+
base.WebApiBase.SetPending(options);
|
|
1628
|
+
return new Promise< carriers.ArchiveListResult >(async (resolve, reject) => {
|
|
1629
|
+
try {
|
|
1630
|
+
config.baseURL = this._options.baseUrl;
|
|
1631
|
+
const response = await this._axios.post("GetArchiveListByColumnsWithHeader2", request , config);
|
|
1632
|
+
base.WebApiBase.SetCompleted(options);
|
|
1633
|
+
const res : carriers.ArchiveListResult = converters.Create_ArchiveListResult_From( response.data );
|
|
1634
|
+
resolve(res);
|
|
1635
|
+
}
|
|
1636
|
+
catch( err ) {
|
|
1637
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1638
|
+
reject(err);
|
|
1639
|
+
}
|
|
1640
|
+
});
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
/**
|
|
1646
|
+
* Get a page of results for an archive list, explicitly specifying the restrictions as strings, orderby and chosen columns; as well as a name/value string formatted set of options. The return value includes a header that has various extra information, in addition to the actual rows.
|
|
1647
|
+
* @param request - ProviderName, Columns, SortOrder, Restriction, Entities, Page, PageSize, Options
|
|
1648
|
+
* @returns Header with optional row count, plus array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1649
|
+
*/
|
|
1650
|
+
public async getArchiveListByColumnsWithHeader2Async(request: carriers.Archive_GetArchiveListByColumnsWithHeader2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
1651
|
+
|
|
1652
|
+
/**
|
|
1653
|
+
* Get a page of results for an archive list, explicitly specifying the restrictions as strings, orderby and chosen columns; as well as a name/value string formatted set of options. The return value includes a header that has various extra information, in addition to the actual rows.
|
|
1654
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
1655
|
+
* @param columns - Comma separated string of the names of the columns wanted.
|
|
1656
|
+
* @param sortOrder - Comma separated string of sort order for the archive. e.g. "name asc, dept desc" Can be null, which indicates 'no particular order'
|
|
1657
|
+
* @param restriction - Archive restrictions. e.g. "category = 2 or business oneOf (2,3,4)" Archives will generally throw an exception if no restrictions are set. Pass in an empty array if you really do not want restrictions, but remember that you may end up fetching the first page of millions of rows.
|
|
1658
|
+
* @param entities - Comma separated list of entities to include. Can be null, which indicates 'include all entities'
|
|
1659
|
+
* @param page - Page number, page 0 is the first page. Negative page numbers are interpreted as number of rows to skip.
|
|
1660
|
+
* @param pageSize - Page size, which should be kept reasonable (say, no more than 1000 rows at a time)
|
|
1661
|
+
* @param options - name=value&... formatted set of options. "rowcount=true" will cause the rowcount to be calculated and populated.
|
|
1662
|
+
* @returns Header with optional row count, plus array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1663
|
+
*/
|
|
1664
|
+
public async getArchiveListByColumnsWithHeader2Async(providerName: string, columns: string, sortOrder: string, restriction: string, entities: string, page: number, pageSize: number, options: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
1665
|
+
|
|
1666
|
+
public async getArchiveListByColumnsWithHeader2Async(providerName:string|carriers.Archive_GetArchiveListByColumnsWithHeader2Request, columns?:string|base.WebApiRequestOptions, sortOrder?:string, restriction?:string, entities?:string, page?:number, pageSize?:number, options?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult > {
|
|
1667
|
+
let _request : carriers.Archive_GetArchiveListByColumnsWithHeader2Request = null;
|
|
1668
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1669
|
+
const first : any = providerName;
|
|
1670
|
+
if( typeof( first ) === "object" && first && ( typeof(first.providerName)!='undefined' || typeof(first.columns)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restriction)!='undefined' || typeof(first.entities)!='undefined' || typeof(first.page)!='undefined' || typeof(first.pageSize)!='undefined' || typeof(first.options)!='undefined' ) )
|
|
1671
|
+
{
|
|
1672
|
+
_request = providerName as carriers.Archive_GetArchiveListByColumnsWithHeader2Request;
|
|
1673
|
+
_options = columns as base.WebApiRequestOptions;
|
|
1674
|
+
}
|
|
1675
|
+
else
|
|
1676
|
+
{
|
|
1677
|
+
_request = {
|
|
1678
|
+
providerName: providerName as string,
|
|
1679
|
+
columns: columns as string,
|
|
1680
|
+
sortOrder: sortOrder as string,
|
|
1681
|
+
restriction: restriction as string,
|
|
1682
|
+
entities: entities as string,
|
|
1683
|
+
page: page as number,
|
|
1684
|
+
pageSize: pageSize as number,
|
|
1685
|
+
options: options as string,
|
|
1686
|
+
};
|
|
1687
|
+
_options = webapi_options;
|
|
1688
|
+
}
|
|
1689
|
+
return this._getArchiveListByColumnsWithHeader2Async( _request, _options );
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
|
|
1693
|
+
private async _getArchiveListByColumnsWithHeaderWithContext2Async(request: carriers.Archive_GetArchiveListByColumnsWithHeaderWithContext2Request, options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult > {
|
|
1694
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1695
|
+
base.WebApiBase.SetPending(options);
|
|
1696
|
+
return new Promise< carriers.ArchiveListResult >(async (resolve, reject) => {
|
|
1697
|
+
try {
|
|
1698
|
+
config.baseURL = this._options.baseUrl;
|
|
1699
|
+
const response = await this._axios.post("GetArchiveListByColumnsWithHeaderWithContext2", request , config);
|
|
1700
|
+
base.WebApiBase.SetCompleted(options);
|
|
1701
|
+
const res : carriers.ArchiveListResult = converters.Create_ArchiveListResult_From( response.data );
|
|
1702
|
+
resolve(res);
|
|
1703
|
+
}
|
|
1704
|
+
catch( err ) {
|
|
1705
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1706
|
+
reject(err);
|
|
1707
|
+
}
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* Get a page of results for an archive list, with context parameter, explicitly specifying the restrictions as strings, orderby and chosen columns; as well as a name/value string formatted set of options. The return value includes a header that has various extra information, in addition to the actual rows.
|
|
1715
|
+
* @param request - ProviderName, Columns, SortOrder, Restriction, Entities, Page, PageSize, Options, Context
|
|
1716
|
+
* @returns Header with optional row count, plus array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1717
|
+
*/
|
|
1718
|
+
public async getArchiveListByColumnsWithHeaderWithContext2Async(request: carriers.Archive_GetArchiveListByColumnsWithHeaderWithContext2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* Get a page of results for an archive list, with context parameter, explicitly specifying the restrictions as strings, orderby and chosen columns; as well as a name/value string formatted set of options. The return value includes a header that has various extra information, in addition to the actual rows.
|
|
1722
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
1723
|
+
* @param columns - Comma separated list of the names of the columns wanted.
|
|
1724
|
+
* @param sortOrder - Sort order for the archive. "name asc, dept desc" Can be null, which indicates 'no particular order'
|
|
1725
|
+
* @param restriction - Archive restrictions as string. "updated > '2009.1.1' and registeredBy = 2" Archives will generally throw an exception if no restrictions are set. Pass in an empty array if you really do not want restrictions, but remember that you may end up fetching the first page of millions of rows.
|
|
1726
|
+
* @param entities - Comma separated list of entities to include. Can be null, which indicates 'include all entities'
|
|
1727
|
+
* @param page - Page number, page 0 is the first page. Negative page numbers are interpreted as number of rows to skip.
|
|
1728
|
+
* @param pageSize - Page size, which should be kept reasonable (say, no more than 1000 rows at a time)
|
|
1729
|
+
* @param options - name=value&... formatted set of options. "rowcount=true" will cause the rowcount to be calculated and populated.
|
|
1730
|
+
* @param context - Context parameter, url-encoded string context parameter for ArchiveProvider constructor
|
|
1731
|
+
* @returns Header with optional row count, plus array of archive list items, where each item represents one row of data (row level data + the requested columns)
|
|
1732
|
+
*/
|
|
1733
|
+
public async getArchiveListByColumnsWithHeaderWithContext2Async(providerName: string, columns: string, sortOrder: string, restriction: string, entities: string, page: number, pageSize: number, options: string, context: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult >;
|
|
1734
|
+
|
|
1735
|
+
public async getArchiveListByColumnsWithHeaderWithContext2Async(providerName:string|carriers.Archive_GetArchiveListByColumnsWithHeaderWithContext2Request, columns?:string|base.WebApiRequestOptions, sortOrder?:string, restriction?:string, entities?:string, page?:number, pageSize?:number, options?:string, context?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ArchiveListResult > {
|
|
1736
|
+
let _request : carriers.Archive_GetArchiveListByColumnsWithHeaderWithContext2Request = null;
|
|
1737
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1738
|
+
const first : any = providerName;
|
|
1739
|
+
if( typeof( first ) === "object" && first && ( typeof(first.providerName)!='undefined' || typeof(first.columns)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restriction)!='undefined' || typeof(first.entities)!='undefined' || typeof(first.page)!='undefined' || typeof(first.pageSize)!='undefined' || typeof(first.options)!='undefined' || typeof(first.context)!='undefined' ) )
|
|
1740
|
+
{
|
|
1741
|
+
_request = providerName as carriers.Archive_GetArchiveListByColumnsWithHeaderWithContext2Request;
|
|
1742
|
+
_options = columns as base.WebApiRequestOptions;
|
|
1743
|
+
}
|
|
1744
|
+
else
|
|
1745
|
+
{
|
|
1746
|
+
_request = {
|
|
1747
|
+
providerName: providerName as string,
|
|
1748
|
+
columns: columns as string,
|
|
1749
|
+
sortOrder: sortOrder as string,
|
|
1750
|
+
restriction: restriction as string,
|
|
1751
|
+
entities: entities as string,
|
|
1752
|
+
page: page as number,
|
|
1753
|
+
pageSize: pageSize as number,
|
|
1754
|
+
options: options as string,
|
|
1755
|
+
context: context as string,
|
|
1756
|
+
};
|
|
1757
|
+
_options = webapi_options;
|
|
1758
|
+
}
|
|
1759
|
+
return this._getArchiveListByColumnsWithHeaderWithContext2Async( _request, _options );
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
private async _exportArchiveAsync(request: carriers.Archive_ExportArchiveRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ExportArchiveResult > {
|
|
1764
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1765
|
+
base.WebApiBase.SetPending(options);
|
|
1766
|
+
return new Promise< carriers.ExportArchiveResult >(async (resolve, reject) => {
|
|
1767
|
+
try {
|
|
1768
|
+
config.baseURL = this._options.baseUrl;
|
|
1769
|
+
const response = await this._axios.post("ExportArchive", request , config);
|
|
1770
|
+
base.WebApiBase.SetCompleted(options);
|
|
1771
|
+
const res : carriers.ExportArchiveResult = converters.Create_ExportArchiveResult_From( response.data );
|
|
1772
|
+
resolve(res);
|
|
1773
|
+
}
|
|
1774
|
+
catch( err ) {
|
|
1775
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1776
|
+
reject(err);
|
|
1777
|
+
}
|
|
1778
|
+
});
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* Exports the target archive to a downloadable format.
|
|
1785
|
+
* @param request - ProviderName, Context, DesiredEntities, Columns, SortOrder, Restrictions, ExportType, SelectedRowIds, EstimatedRowCount
|
|
1786
|
+
* @returns
|
|
1787
|
+
*/
|
|
1788
|
+
public async exportArchiveAsync(request: carriers.Archive_ExportArchiveRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ExportArchiveResult >;
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* Exports the target archive to a downloadable format.
|
|
1792
|
+
* @param providerName - The name of the archive provider to use; it will be created via the ArchiveProviderFactory from a plugin
|
|
1793
|
+
* @param context - Context parameter, url-encoded string context parameter for ArchiveProvider constructor
|
|
1794
|
+
* @param desiredEntities - Comma separated list of the names of the desired entities.
|
|
1795
|
+
* @param columns - Comma separated list of the names of the columns wanted; supports display names
|
|
1796
|
+
* @param sortOrder -
|
|
1797
|
+
* @param restrictions -
|
|
1798
|
+
* @param exportType - To what format the archive should be exported; Excel, etc.
|
|
1799
|
+
* @param selectedRowIds -
|
|
1800
|
+
* @param estimatedRowCount - The estimated amount of rows to be exported. Used to determine if the operation should be run as a batch task or immediately.
|
|
1801
|
+
* @returns
|
|
1802
|
+
*/
|
|
1803
|
+
public async exportArchiveAsync(providerName: string, context: string, desiredEntities: string[], columns: string[], sortOrder: carriers.ArchiveOrderByInfo[], restrictions: carriers.ArchiveRestrictionInfo[], exportType: string, selectedRowIds: string[], estimatedRowCount: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ExportArchiveResult >;
|
|
1804
|
+
|
|
1805
|
+
public async exportArchiveAsync(providerName:string|carriers.Archive_ExportArchiveRequest, context?:string|base.WebApiRequestOptions, desiredEntities?:string[], columns?:string[], sortOrder?:carriers.ArchiveOrderByInfo[], restrictions?:carriers.ArchiveRestrictionInfo[], exportType?:string, selectedRowIds?:string[], estimatedRowCount?:number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ExportArchiveResult > {
|
|
1806
|
+
let _request : carriers.Archive_ExportArchiveRequest = null;
|
|
1807
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1808
|
+
const first : any = providerName;
|
|
1809
|
+
if( typeof( first ) === "object" && first && ( typeof(first.providerName)!='undefined' || typeof(first.context)!='undefined' || typeof(first.desiredEntities)!='undefined' || typeof(first.columns)!='undefined' || typeof(first.sortOrder)!='undefined' || typeof(first.restrictions)!='undefined' || typeof(first.exportType)!='undefined' || typeof(first.selectedRowIds)!='undefined' || typeof(first.estimatedRowCount)!='undefined' ) )
|
|
1810
|
+
{
|
|
1811
|
+
_request = providerName as carriers.Archive_ExportArchiveRequest;
|
|
1812
|
+
_options = context as base.WebApiRequestOptions;
|
|
1813
|
+
}
|
|
1814
|
+
else
|
|
1815
|
+
{
|
|
1816
|
+
_request = {
|
|
1817
|
+
providerName: providerName as string,
|
|
1818
|
+
context: context as string,
|
|
1819
|
+
desiredEntities: desiredEntities as string[],
|
|
1820
|
+
columns: columns as string[],
|
|
1821
|
+
sortOrder: sortOrder as carriers.ArchiveOrderByInfo[],
|
|
1822
|
+
restrictions: restrictions as carriers.ArchiveRestrictionInfo[],
|
|
1823
|
+
exportType: exportType as string,
|
|
1824
|
+
selectedRowIds: selectedRowIds as string[],
|
|
1825
|
+
estimatedRowCount: estimatedRowCount as number,
|
|
1826
|
+
};
|
|
1827
|
+
_options = webapi_options;
|
|
1828
|
+
}
|
|
1829
|
+
return this._exportArchiveAsync( _request, _options );
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
private async _getRelatedDataAsync(request: carriers.Archive_GetRelatedDataRequest, options?:base.WebApiRequestOptions) : Promise< carriers.RelatedData[] > {
|
|
1834
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1835
|
+
base.WebApiBase.SetPending(options);
|
|
1836
|
+
return new Promise< carriers.RelatedData[] >(async (resolve, reject) => {
|
|
1837
|
+
try {
|
|
1838
|
+
config.baseURL = this._options.baseUrl;
|
|
1839
|
+
const response = await this._axios.post("GetRelatedData", request , config);
|
|
1840
|
+
base.WebApiBase.SetCompleted(options);
|
|
1841
|
+
const res : carriers.RelatedData[] = converters.Create_RelatedDataArray_From( response.data );
|
|
1842
|
+
resolve(res);
|
|
1843
|
+
}
|
|
1844
|
+
catch( err ) {
|
|
1845
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1846
|
+
reject(err);
|
|
1847
|
+
}
|
|
1848
|
+
});
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* Get data for fields related to a table record. While this method /can/ be used to fetch plain fields, that is not the intended usage and it does not replace the Entity.Get methods available for that purpose. Nor does it replace the generic DotSyntax/Dynamic archive provider.
|
|
1855
|
+
* @param request - Table, RecordId, Fields
|
|
1856
|
+
* @returns Array of field => ArchiveColumnData objects
|
|
1857
|
+
*/
|
|
1858
|
+
public async getRelatedDataAsync(request: carriers.Archive_GetRelatedDataRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.RelatedData[] >;
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* Get data for fields related to a table record. While this method /can/ be used to fetch plain fields, that is not the intended usage and it does not replace the Entity.Get methods available for that purpose. Nor does it replace the generic DotSyntax/Dynamic archive provider.
|
|
1862
|
+
* @param table - The root table to get related data for, such as 'ticket' or 'y_car'
|
|
1863
|
+
* @param recordId - The primary key of the root table to get related data for
|
|
1864
|
+
* @param fields - Names of fields - these need to be valid in the DotSyntax for this table, and can be arbitrarily deep. Examples: 'title', 'created_by.associate_id.person.fullName', 'x_comment'. Do not start with the root table name.
|
|
1865
|
+
* @returns Array of field => ArchiveColumnData objects
|
|
1866
|
+
*/
|
|
1867
|
+
public async getRelatedDataAsync(table: string, recordId: number, fields: string[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.RelatedData[] >;
|
|
1868
|
+
|
|
1869
|
+
public async getRelatedDataAsync(table:string|carriers.Archive_GetRelatedDataRequest, recordId?:number|base.WebApiRequestOptions, fields?:string[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.RelatedData[] > {
|
|
1870
|
+
let _request : carriers.Archive_GetRelatedDataRequest = null;
|
|
1871
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1872
|
+
const first : any = table;
|
|
1873
|
+
if( typeof( first ) === "object" && first && ( typeof(first.table)!='undefined' || typeof(first.recordId)!='undefined' || typeof(first.fields)!='undefined' ) )
|
|
1874
|
+
{
|
|
1875
|
+
_request = table as carriers.Archive_GetRelatedDataRequest;
|
|
1876
|
+
_options = recordId as base.WebApiRequestOptions;
|
|
1877
|
+
}
|
|
1878
|
+
else
|
|
1879
|
+
{
|
|
1880
|
+
_request = {
|
|
1881
|
+
table: table as string,
|
|
1882
|
+
recordId: recordId as number,
|
|
1883
|
+
fields: fields as string[],
|
|
1884
|
+
};
|
|
1885
|
+
_options = webapi_options;
|
|
1886
|
+
}
|
|
1887
|
+
return this._getRelatedDataAsync( _request, _options );
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
private async _getRelatedData2Async(request: carriers.Archive_GetRelatedData2Request, options?:base.WebApiRequestOptions) : Promise< carriers.RelatedData[] > {
|
|
1892
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1893
|
+
base.WebApiBase.SetPending(options);
|
|
1894
|
+
return new Promise< carriers.RelatedData[] >(async (resolve, reject) => {
|
|
1895
|
+
try {
|
|
1896
|
+
config.baseURL = this._options.baseUrl;
|
|
1897
|
+
const response = await this._axios.post("GetRelatedData2", request , config);
|
|
1898
|
+
base.WebApiBase.SetCompleted(options);
|
|
1899
|
+
const res : carriers.RelatedData[] = converters.Create_RelatedDataArray_From( response.data );
|
|
1900
|
+
resolve(res);
|
|
1901
|
+
}
|
|
1902
|
+
catch( err ) {
|
|
1903
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1904
|
+
reject(err);
|
|
1905
|
+
}
|
|
1906
|
+
});
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* Get data for fields related to a table record. While this method /can/ be used to fetch plain fields, that is not the intended usage and it does not replace the Entity.Get methods available for that purpose. Nor does it replace the generic DotSyntax/Dynamic archive provider.
|
|
1913
|
+
* @param request - Table, RecordId, Fields
|
|
1914
|
+
* @returns Array of field => ArchiveColumnData objects
|
|
1915
|
+
*/
|
|
1916
|
+
public async getRelatedData2Async(request: carriers.Archive_GetRelatedData2Request, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.RelatedData[] >;
|
|
1917
|
+
|
|
1918
|
+
/**
|
|
1919
|
+
* Get data for fields related to a table record. While this method /can/ be used to fetch plain fields, that is not the intended usage and it does not replace the Entity.Get methods available for that purpose. Nor does it replace the generic DotSyntax/Dynamic archive provider.
|
|
1920
|
+
* @param table - The root table to get related data for, such as 'ticket' or 'y_car'
|
|
1921
|
+
* @param recordId - The primary key of the root table to get related data for
|
|
1922
|
+
* @param fields - Names of fields as a comma-separated list - these need to be valid in the DotSyntax for this table, and can be arbitrarily deep. Example: 'title,created_by.associate_id.person.fullName, x_comment'. Do not start with the root table name.
|
|
1923
|
+
* @returns Array of field => ArchiveColumnData objects
|
|
1924
|
+
*/
|
|
1925
|
+
public async getRelatedData2Async(table: string, recordId: number, fields: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.RelatedData[] >;
|
|
1926
|
+
|
|
1927
|
+
public async getRelatedData2Async(table:string|carriers.Archive_GetRelatedData2Request, recordId?:number|base.WebApiRequestOptions, fields?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.RelatedData[] > {
|
|
1928
|
+
let _request : carriers.Archive_GetRelatedData2Request = null;
|
|
1929
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1930
|
+
const first : any = table;
|
|
1931
|
+
if( typeof( first ) === "object" && first && ( typeof(first.table)!='undefined' || typeof(first.recordId)!='undefined' || typeof(first.fields)!='undefined' ) )
|
|
1932
|
+
{
|
|
1933
|
+
_request = table as carriers.Archive_GetRelatedData2Request;
|
|
1934
|
+
_options = recordId as base.WebApiRequestOptions;
|
|
1935
|
+
}
|
|
1936
|
+
else
|
|
1937
|
+
{
|
|
1938
|
+
_request = {
|
|
1939
|
+
table: table as string,
|
|
1940
|
+
recordId: recordId as number,
|
|
1941
|
+
fields: fields as string,
|
|
1942
|
+
};
|
|
1943
|
+
_options = webapi_options;
|
|
1944
|
+
}
|
|
1945
|
+
return this._getRelatedData2Async( _request, _options );
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
} // class v1ArchiveAgentController
|
|
1949
|
+
|
|
1950
|
+
|