@superoffice/webapi 11.6.980 → 11.7.727
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/AppointmentTzTest.ts +7 -6
- package/__tests__/AxiosNockTest.ts +1 -1
- package/__tests__/ContactRestTest.ts +1 -1
- package/__tests__/ContactTest.ts +1 -1
- package/__tests__/DocumentTest.ts +1 -1
- package/__tests__/PersonTest.ts +1 -1
- package/__tests__/PersonTzTest.ts +1 -1
- package/__tests__/ResponseCallbackTest.ts +23 -0
- package/__tests__/WebapiTest.ts +1 -1
- package/__tests__/WebhookTest.ts +1 -1
- package/dist/cjs/AIAgent.d.ts +95 -3
- package/dist/cjs/AIAgent.d.ts.map +1 -1
- package/dist/cjs/AIAgent.js +274 -33
- package/dist/cjs/AIAgent.js.map +1 -1
- package/dist/cjs/AppointmentAgent.d.ts +3 -3
- package/dist/cjs/AppointmentAgent.d.ts.map +1 -1
- package/dist/cjs/AppointmentAgent.js +118 -118
- package/dist/cjs/AppointmentAgent.js.map +1 -1
- package/dist/cjs/AppointmentRestApi.d.ts +2 -2
- package/dist/cjs/AppointmentRestApi.d.ts.map +1 -1
- package/dist/cjs/AppointmentRestApi.js +9 -9
- package/dist/cjs/AppointmentRestApi.js.map +1 -1
- package/dist/cjs/ArchiveAgent.d.ts +2 -2
- package/dist/cjs/ArchiveAgent.d.ts.map +1 -1
- package/dist/cjs/ArchiveAgent.js +34 -34
- package/dist/cjs/ArchiveAgent.js.map +1 -1
- package/dist/cjs/AssociateAgent.d.ts +2 -2
- package/dist/cjs/AssociateAgent.d.ts.map +1 -1
- package/dist/cjs/AssociateAgent.js +11 -11
- package/dist/cjs/AssociateAgent.js.map +1 -1
- package/dist/cjs/BLOBAgent.d.ts +3 -3
- package/dist/cjs/BLOBAgent.d.ts.map +1 -1
- package/dist/cjs/BLOBAgent.js +58 -58
- package/dist/cjs/BLOBAgent.js.map +1 -1
- package/dist/cjs/BatchAgent.d.ts +3 -3
- package/dist/cjs/BatchAgent.d.ts.map +1 -1
- package/dist/cjs/BatchAgent.js +18 -18
- package/dist/cjs/BatchAgent.js.map +1 -1
- package/dist/cjs/BulkUpdateAgent.d.ts +2 -2
- package/dist/cjs/BulkUpdateAgent.d.ts.map +1 -1
- package/dist/cjs/BulkUpdateAgent.js +11 -11
- package/dist/cjs/BulkUpdateAgent.js.map +1 -1
- package/dist/cjs/CRMScriptAgent.d.ts +2 -2
- package/dist/cjs/CRMScriptAgent.d.ts.map +1 -1
- package/dist/cjs/CRMScriptAgent.js +31 -31
- package/dist/cjs/CRMScriptAgent.js.map +1 -1
- package/dist/cjs/Carriers.d.ts +179 -2
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/Carriers.js +1 -1
- package/dist/cjs/Carriers.js.map +1 -1
- package/dist/cjs/ChatAgent.d.ts +2 -2
- package/dist/cjs/ChatAgent.d.ts.map +1 -1
- package/dist/cjs/ChatAgent.js +34 -34
- package/dist/cjs/ChatAgent.js.map +1 -1
- package/dist/cjs/ConfigurationAgent.d.ts +3 -3
- package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.js +56 -56
- package/dist/cjs/ConfigurationAgent.js.map +1 -1
- package/dist/cjs/ContactAgent.d.ts +3 -3
- package/dist/cjs/ContactAgent.d.ts.map +1 -1
- package/dist/cjs/ContactAgent.js +39 -39
- package/dist/cjs/ContactAgent.js.map +1 -1
- package/dist/cjs/ContactRestApi.d.ts +2 -2
- package/dist/cjs/ContactRestApi.d.ts.map +1 -1
- package/dist/cjs/ContactRestApi.js +9 -9
- package/dist/cjs/ContactRestApi.js.map +1 -1
- package/dist/cjs/Converters.d.ts +17 -2
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +211 -26
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/CustomerServiceAgent.d.ts +3 -3
- package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
- package/dist/cjs/CustomerServiceAgent.js +41 -41
- package/dist/cjs/CustomerServiceAgent.js.map +1 -1
- package/dist/cjs/DashAgent.d.ts +2 -2
- package/dist/cjs/DashAgent.d.ts.map +1 -1
- package/dist/cjs/DashAgent.js +43 -43
- package/dist/cjs/DashAgent.js.map +1 -1
- package/dist/cjs/DatabaseAgent.d.ts +2 -2
- package/dist/cjs/DatabaseAgent.d.ts.map +1 -1
- package/dist/cjs/DatabaseAgent.js +5 -5
- package/dist/cjs/DatabaseAgent.js.map +1 -1
- package/dist/cjs/DatabaseTableAgent.d.ts +3 -3
- package/dist/cjs/DatabaseTableAgent.d.ts.map +1 -1
- package/dist/cjs/DatabaseTableAgent.js +11 -11
- package/dist/cjs/DatabaseTableAgent.js.map +1 -1
- package/dist/cjs/DiagnosticsAgent.d.ts +3 -3
- package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/cjs/DiagnosticsAgent.js +29 -29
- package/dist/cjs/DiagnosticsAgent.js.map +1 -1
- package/dist/cjs/DocumentAgent.d.ts +3 -3
- package/dist/cjs/DocumentAgent.d.ts.map +1 -1
- package/dist/cjs/DocumentAgent.js +109 -109
- package/dist/cjs/DocumentAgent.js.map +1 -1
- package/dist/cjs/DocumentMigrationAgent.d.ts +2 -2
- package/dist/cjs/DocumentMigrationAgent.d.ts.map +1 -1
- package/dist/cjs/DocumentMigrationAgent.js +13 -13
- package/dist/cjs/DocumentMigrationAgent.js.map +1 -1
- package/dist/cjs/DocumentRestApi.d.ts +2 -2
- package/dist/cjs/DocumentRestApi.d.ts.map +1 -1
- package/dist/cjs/DocumentRestApi.js +9 -9
- package/dist/cjs/DocumentRestApi.js.map +1 -1
- package/dist/cjs/EMailAgent.d.ts +3 -3
- package/dist/cjs/EMailAgent.d.ts.map +1 -1
- package/dist/cjs/EMailAgent.js +108 -108
- package/dist/cjs/EMailAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +56 -0
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +59 -1
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/ErpSyncAgent.d.ts +3 -3
- package/dist/cjs/ErpSyncAgent.d.ts.map +1 -1
- package/dist/cjs/ErpSyncAgent.js +52 -52
- package/dist/cjs/ErpSyncAgent.js.map +1 -1
- package/dist/cjs/FavouriteAgent.d.ts +2 -2
- package/dist/cjs/FavouriteAgent.d.ts.map +1 -1
- package/dist/cjs/FavouriteAgent.js +14 -14
- package/dist/cjs/FavouriteAgent.js.map +1 -1
- package/dist/cjs/FindAgent.d.ts +2 -2
- package/dist/cjs/FindAgent.d.ts.map +1 -1
- package/dist/cjs/FindAgent.js +39 -39
- package/dist/cjs/FindAgent.js.map +1 -1
- package/dist/cjs/ForeignSystemAgent.d.ts +2 -2
- package/dist/cjs/ForeignSystemAgent.d.ts.map +1 -1
- package/dist/cjs/ForeignSystemAgent.js +33 -33
- package/dist/cjs/ForeignSystemAgent.js.map +1 -1
- package/dist/cjs/FreeTextAgent.d.ts +3 -3
- package/dist/cjs/FreeTextAgent.d.ts.map +1 -1
- package/dist/cjs/FreeTextAgent.js +9 -9
- package/dist/cjs/FreeTextAgent.js.map +1 -1
- package/dist/cjs/ImportAgent.d.ts +3 -3
- package/dist/cjs/ImportAgent.d.ts.map +1 -1
- package/dist/cjs/ImportAgent.js +7 -7
- package/dist/cjs/ImportAgent.js.map +1 -1
- package/dist/cjs/LicenseAgent.d.ts +2 -2
- package/dist/cjs/LicenseAgent.d.ts.map +1 -1
- package/dist/cjs/LicenseAgent.js +25 -25
- package/dist/cjs/LicenseAgent.js.map +1 -1
- package/dist/cjs/ListAgent.d.ts +61 -3
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +432 -303
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/MDOAgent.d.ts +2 -2
- package/dist/cjs/MDOAgent.d.ts.map +1 -1
- package/dist/cjs/MDOAgent.js +15 -15
- package/dist/cjs/MDOAgent.js.map +1 -1
- package/dist/cjs/MarketingAgent.d.ts +3 -3
- package/dist/cjs/MarketingAgent.d.ts.map +1 -1
- package/dist/cjs/MarketingAgent.js +27 -27
- package/dist/cjs/MarketingAgent.js.map +1 -1
- package/dist/cjs/MessagingAgent.d.ts +2 -2
- package/dist/cjs/MessagingAgent.d.ts.map +1 -1
- package/dist/cjs/MessagingAgent.js +9 -9
- package/dist/cjs/MessagingAgent.js.map +1 -1
- package/dist/cjs/NavigatorAgent.d.ts +2 -2
- package/dist/cjs/NavigatorAgent.d.ts.map +1 -1
- package/dist/cjs/NavigatorAgent.js +5 -5
- package/dist/cjs/NavigatorAgent.js.map +1 -1
- package/dist/cjs/NumberAllocationAgent.d.ts +2 -2
- package/dist/cjs/NumberAllocationAgent.d.ts.map +1 -1
- package/dist/cjs/NumberAllocationAgent.js +10 -10
- package/dist/cjs/NumberAllocationAgent.js.map +1 -1
- package/dist/cjs/PersonAgent.d.ts +3 -3
- package/dist/cjs/PersonAgent.d.ts.map +1 -1
- package/dist/cjs/PersonAgent.js +69 -69
- package/dist/cjs/PersonAgent.js.map +1 -1
- package/dist/cjs/PersonRestApi.d.ts +2 -2
- package/dist/cjs/PersonRestApi.d.ts.map +1 -1
- package/dist/cjs/PersonRestApi.js +9 -9
- package/dist/cjs/PersonRestApi.js.map +1 -1
- package/dist/cjs/PhoneListAgent.d.ts +2 -2
- package/dist/cjs/PhoneListAgent.d.ts.map +1 -1
- package/dist/cjs/PhoneListAgent.js +11 -11
- package/dist/cjs/PhoneListAgent.js.map +1 -1
- package/dist/cjs/PocketAgent.d.ts +3 -3
- package/dist/cjs/PocketAgent.d.ts.map +1 -1
- package/dist/cjs/PocketAgent.js +16 -16
- package/dist/cjs/PocketAgent.js.map +1 -1
- package/dist/cjs/PreferenceAgent.d.ts +3 -3
- package/dist/cjs/PreferenceAgent.d.ts.map +1 -1
- package/dist/cjs/PreferenceAgent.js +42 -42
- package/dist/cjs/PreferenceAgent.js.map +1 -1
- package/dist/cjs/PreviewsAgent.d.ts +2 -2
- package/dist/cjs/PreviewsAgent.d.ts.map +1 -1
- package/dist/cjs/PreviewsAgent.js +3 -3
- package/dist/cjs/PreviewsAgent.js.map +1 -1
- package/dist/cjs/ProjectAgent.d.ts +2 -2
- package/dist/cjs/ProjectAgent.d.ts.map +1 -1
- package/dist/cjs/ProjectAgent.js +58 -58
- package/dist/cjs/ProjectAgent.js.map +1 -1
- package/dist/cjs/ProjectRestApi.d.ts +2 -2
- package/dist/cjs/ProjectRestApi.d.ts.map +1 -1
- package/dist/cjs/ProjectRestApi.js +9 -9
- package/dist/cjs/ProjectRestApi.js.map +1 -1
- package/dist/cjs/QuoteAgent.d.ts +3 -3
- package/dist/cjs/QuoteAgent.d.ts.map +1 -1
- package/dist/cjs/QuoteAgent.js +101 -101
- package/dist/cjs/QuoteAgent.js.map +1 -1
- package/dist/cjs/RelationAgent.d.ts +2 -2
- package/dist/cjs/RelationAgent.d.ts.map +1 -1
- package/dist/cjs/RelationAgent.js +7 -7
- package/dist/cjs/RelationAgent.js.map +1 -1
- package/dist/cjs/ReportAgent.d.ts +2 -2
- package/dist/cjs/ReportAgent.d.ts.map +1 -1
- package/dist/cjs/ReportAgent.js +7 -7
- package/dist/cjs/ReportAgent.js.map +1 -1
- package/dist/cjs/ResourceAgent.d.ts +2 -2
- package/dist/cjs/ResourceAgent.d.ts.map +1 -1
- package/dist/cjs/ResourceAgent.js +8 -8
- package/dist/cjs/ResourceAgent.js.map +1 -1
- package/dist/cjs/SaintAgent.d.ts +2 -2
- package/dist/cjs/SaintAgent.d.ts.map +1 -1
- package/dist/cjs/SaintAgent.js +17 -17
- package/dist/cjs/SaintAgent.js.map +1 -1
- package/dist/cjs/SaleAgent.d.ts +3 -3
- package/dist/cjs/SaleAgent.d.ts.map +1 -1
- package/dist/cjs/SaleAgent.js +45 -45
- package/dist/cjs/SaleAgent.js.map +1 -1
- package/dist/cjs/SaleRestApi.d.ts +2 -2
- package/dist/cjs/SaleRestApi.d.ts.map +1 -1
- package/dist/cjs/SaleRestApi.js +9 -9
- package/dist/cjs/SaleRestApi.js.map +1 -1
- package/dist/cjs/SelectionAgent.d.ts +3 -3
- package/dist/cjs/SelectionAgent.d.ts.map +1 -1
- package/dist/cjs/SelectionAgent.js +60 -60
- package/dist/cjs/SelectionAgent.js.map +1 -1
- package/dist/cjs/SentryAgent.d.ts +2 -2
- package/dist/cjs/SentryAgent.d.ts.map +1 -1
- package/dist/cjs/SentryAgent.js +11 -11
- package/dist/cjs/SentryAgent.js.map +1 -1
- package/dist/cjs/TargetsAgent.d.ts +3 -3
- package/dist/cjs/TargetsAgent.d.ts.map +1 -1
- package/dist/cjs/TargetsAgent.js +28 -28
- package/dist/cjs/TargetsAgent.js.map +1 -1
- package/dist/cjs/TicketAgent.d.ts +3 -3
- package/dist/cjs/TicketAgent.d.ts.map +1 -1
- package/dist/cjs/TicketAgent.js +75 -75
- package/dist/cjs/TicketAgent.js.map +1 -1
- package/dist/cjs/TimeZoneAgent.d.ts +2 -2
- package/dist/cjs/TimeZoneAgent.d.ts.map +1 -1
- package/dist/cjs/TimeZoneAgent.js +15 -15
- package/dist/cjs/TimeZoneAgent.js.map +1 -1
- package/dist/cjs/TooltipsAgent.d.ts +2 -2
- package/dist/cjs/TooltipsAgent.d.ts.map +1 -1
- package/dist/cjs/TooltipsAgent.js +3 -3
- package/dist/cjs/TooltipsAgent.js.map +1 -1
- package/dist/cjs/UserAgent.d.ts +3 -3
- package/dist/cjs/UserAgent.d.ts.map +1 -1
- package/dist/cjs/UserAgent.js +99 -99
- package/dist/cjs/UserAgent.js.map +1 -1
- package/dist/cjs/UserDefinedFieldInfoAgent.d.ts +3 -3
- package/dist/cjs/UserDefinedFieldInfoAgent.d.ts.map +1 -1
- package/dist/cjs/UserDefinedFieldInfoAgent.js +36 -36
- package/dist/cjs/UserDefinedFieldInfoAgent.js.map +1 -1
- package/dist/cjs/ViewStateAgent.d.ts +2 -2
- package/dist/cjs/ViewStateAgent.d.ts.map +1 -1
- package/dist/cjs/ViewStateAgent.js +19 -19
- package/dist/cjs/ViewStateAgent.js.map +1 -1
- package/dist/cjs/WebApi.d.ts +67 -67
- package/dist/cjs/WebApi.d.ts.map +1 -1
- package/dist/cjs/WebApi.js +192 -192
- package/dist/cjs/WebApi.js.map +1 -1
- package/dist/cjs/WebApiBase.d.ts +6 -3
- package/dist/cjs/WebApiBase.d.ts.map +1 -1
- package/dist/cjs/WebApiBase.js +32 -31
- package/dist/cjs/WebApiBase.js.map +1 -1
- package/dist/cjs/WebhookAgent.d.ts +3 -3
- package/dist/cjs/WebhookAgent.d.ts.map +1 -1
- package/dist/cjs/WebhookAgent.js +11 -11
- package/dist/cjs/WebhookAgent.js.map +1 -1
- package/dist/cjs/WorkflowAgent.d.ts +3 -3
- package/dist/cjs/WorkflowAgent.d.ts.map +1 -1
- package/dist/cjs/WorkflowAgent.js +37 -37
- package/dist/cjs/WorkflowAgent.js.map +1 -1
- package/dist/cjs/package.json +3 -1
- package/dist/esm/AIAgent.d.ts +95 -3
- package/dist/esm/AIAgent.d.ts.map +1 -1
- package/dist/esm/AIAgent.js +273 -32
- package/dist/esm/AIAgent.js.map +1 -1
- package/dist/esm/AppointmentAgent.d.ts +3 -3
- package/dist/esm/AppointmentAgent.d.ts.map +1 -1
- package/dist/esm/AppointmentAgent.js +117 -117
- package/dist/esm/AppointmentAgent.js.map +1 -1
- package/dist/esm/AppointmentRestApi.d.ts +2 -2
- package/dist/esm/AppointmentRestApi.d.ts.map +1 -1
- package/dist/esm/AppointmentRestApi.js +9 -9
- package/dist/esm/AppointmentRestApi.js.map +1 -1
- package/dist/esm/ArchiveAgent.d.ts +2 -2
- package/dist/esm/ArchiveAgent.d.ts.map +1 -1
- package/dist/esm/ArchiveAgent.js +34 -34
- package/dist/esm/ArchiveAgent.js.map +1 -1
- package/dist/esm/AssociateAgent.d.ts +2 -2
- package/dist/esm/AssociateAgent.d.ts.map +1 -1
- package/dist/esm/AssociateAgent.js +11 -11
- package/dist/esm/AssociateAgent.js.map +1 -1
- package/dist/esm/BLOBAgent.d.ts +3 -3
- package/dist/esm/BLOBAgent.d.ts.map +1 -1
- package/dist/esm/BLOBAgent.js +38 -38
- package/dist/esm/BLOBAgent.js.map +1 -1
- package/dist/esm/BatchAgent.d.ts +3 -3
- package/dist/esm/BatchAgent.d.ts.map +1 -1
- package/dist/esm/BatchAgent.js +18 -18
- package/dist/esm/BatchAgent.js.map +1 -1
- package/dist/esm/BulkUpdateAgent.d.ts +2 -2
- package/dist/esm/BulkUpdateAgent.d.ts.map +1 -1
- package/dist/esm/BulkUpdateAgent.js +11 -11
- package/dist/esm/BulkUpdateAgent.js.map +1 -1
- package/dist/esm/CRMScriptAgent.d.ts +2 -2
- package/dist/esm/CRMScriptAgent.d.ts.map +1 -1
- package/dist/esm/CRMScriptAgent.js +31 -31
- package/dist/esm/CRMScriptAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +179 -2
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/Carriers.js +1 -1
- package/dist/esm/Carriers.js.map +1 -1
- package/dist/esm/ChatAgent.d.ts +2 -2
- package/dist/esm/ChatAgent.d.ts.map +1 -1
- package/dist/esm/ChatAgent.js +34 -34
- package/dist/esm/ChatAgent.js.map +1 -1
- package/dist/esm/ConfigurationAgent.d.ts +3 -3
- package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.js +56 -56
- package/dist/esm/ConfigurationAgent.js.map +1 -1
- package/dist/esm/ContactAgent.d.ts +3 -3
- package/dist/esm/ContactAgent.d.ts.map +1 -1
- package/dist/esm/ContactAgent.js +39 -39
- package/dist/esm/ContactAgent.js.map +1 -1
- package/dist/esm/ContactRestApi.d.ts +2 -2
- package/dist/esm/ContactRestApi.d.ts.map +1 -1
- package/dist/esm/ContactRestApi.js +9 -9
- package/dist/esm/ContactRestApi.js.map +1 -1
- package/dist/esm/Converters.d.ts +17 -2
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +174 -4
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/CustomerServiceAgent.d.ts +3 -3
- package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
- package/dist/esm/CustomerServiceAgent.js +41 -41
- package/dist/esm/CustomerServiceAgent.js.map +1 -1
- package/dist/esm/DashAgent.d.ts +2 -2
- package/dist/esm/DashAgent.d.ts.map +1 -1
- package/dist/esm/DashAgent.js +43 -43
- package/dist/esm/DashAgent.js.map +1 -1
- package/dist/esm/DatabaseAgent.d.ts +2 -2
- package/dist/esm/DatabaseAgent.d.ts.map +1 -1
- package/dist/esm/DatabaseAgent.js +5 -5
- package/dist/esm/DatabaseAgent.js.map +1 -1
- package/dist/esm/DatabaseTableAgent.d.ts +3 -3
- package/dist/esm/DatabaseTableAgent.d.ts.map +1 -1
- package/dist/esm/DatabaseTableAgent.js +11 -11
- package/dist/esm/DatabaseTableAgent.js.map +1 -1
- package/dist/esm/DiagnosticsAgent.d.ts +3 -3
- package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/esm/DiagnosticsAgent.js +29 -29
- package/dist/esm/DiagnosticsAgent.js.map +1 -1
- package/dist/esm/DocumentAgent.d.ts +3 -3
- package/dist/esm/DocumentAgent.d.ts.map +1 -1
- package/dist/esm/DocumentAgent.js +90 -90
- package/dist/esm/DocumentAgent.js.map +1 -1
- package/dist/esm/DocumentMigrationAgent.d.ts +2 -2
- package/dist/esm/DocumentMigrationAgent.d.ts.map +1 -1
- package/dist/esm/DocumentMigrationAgent.js +13 -13
- package/dist/esm/DocumentMigrationAgent.js.map +1 -1
- package/dist/esm/DocumentRestApi.d.ts +2 -2
- package/dist/esm/DocumentRestApi.d.ts.map +1 -1
- package/dist/esm/DocumentRestApi.js +9 -9
- package/dist/esm/DocumentRestApi.js.map +1 -1
- package/dist/esm/EMailAgent.d.ts +3 -3
- package/dist/esm/EMailAgent.d.ts.map +1 -1
- package/dist/esm/EMailAgent.js +106 -106
- package/dist/esm/EMailAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +56 -0
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +58 -0
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/ErpSyncAgent.d.ts +3 -3
- package/dist/esm/ErpSyncAgent.d.ts.map +1 -1
- package/dist/esm/ErpSyncAgent.js +52 -52
- package/dist/esm/ErpSyncAgent.js.map +1 -1
- package/dist/esm/FavouriteAgent.d.ts +2 -2
- package/dist/esm/FavouriteAgent.d.ts.map +1 -1
- package/dist/esm/FavouriteAgent.js +14 -14
- package/dist/esm/FavouriteAgent.js.map +1 -1
- package/dist/esm/FindAgent.d.ts +2 -2
- package/dist/esm/FindAgent.d.ts.map +1 -1
- package/dist/esm/FindAgent.js +39 -39
- package/dist/esm/FindAgent.js.map +1 -1
- package/dist/esm/ForeignSystemAgent.d.ts +2 -2
- package/dist/esm/ForeignSystemAgent.d.ts.map +1 -1
- package/dist/esm/ForeignSystemAgent.js +33 -33
- package/dist/esm/ForeignSystemAgent.js.map +1 -1
- package/dist/esm/FreeTextAgent.d.ts +3 -3
- package/dist/esm/FreeTextAgent.d.ts.map +1 -1
- package/dist/esm/FreeTextAgent.js +9 -9
- package/dist/esm/FreeTextAgent.js.map +1 -1
- package/dist/esm/ImportAgent.d.ts +3 -3
- package/dist/esm/ImportAgent.d.ts.map +1 -1
- package/dist/esm/ImportAgent.js +7 -7
- package/dist/esm/ImportAgent.js.map +1 -1
- package/dist/esm/LicenseAgent.d.ts +2 -2
- package/dist/esm/LicenseAgent.d.ts.map +1 -1
- package/dist/esm/LicenseAgent.js +25 -25
- package/dist/esm/LicenseAgent.js.map +1 -1
- package/dist/esm/ListAgent.d.ts +61 -3
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +429 -300
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/MDOAgent.d.ts +2 -2
- package/dist/esm/MDOAgent.d.ts.map +1 -1
- package/dist/esm/MDOAgent.js +15 -15
- package/dist/esm/MDOAgent.js.map +1 -1
- package/dist/esm/MarketingAgent.d.ts +3 -3
- package/dist/esm/MarketingAgent.d.ts.map +1 -1
- package/dist/esm/MarketingAgent.js +27 -27
- package/dist/esm/MarketingAgent.js.map +1 -1
- package/dist/esm/MessagingAgent.d.ts +2 -2
- package/dist/esm/MessagingAgent.d.ts.map +1 -1
- package/dist/esm/MessagingAgent.js +9 -9
- package/dist/esm/MessagingAgent.js.map +1 -1
- package/dist/esm/NavigatorAgent.d.ts +2 -2
- package/dist/esm/NavigatorAgent.d.ts.map +1 -1
- package/dist/esm/NavigatorAgent.js +5 -5
- package/dist/esm/NavigatorAgent.js.map +1 -1
- package/dist/esm/NumberAllocationAgent.d.ts +2 -2
- package/dist/esm/NumberAllocationAgent.d.ts.map +1 -1
- package/dist/esm/NumberAllocationAgent.js +10 -10
- package/dist/esm/NumberAllocationAgent.js.map +1 -1
- package/dist/esm/PersonAgent.d.ts +3 -3
- package/dist/esm/PersonAgent.d.ts.map +1 -1
- package/dist/esm/PersonAgent.js +67 -67
- package/dist/esm/PersonAgent.js.map +1 -1
- package/dist/esm/PersonRestApi.d.ts +2 -2
- package/dist/esm/PersonRestApi.d.ts.map +1 -1
- package/dist/esm/PersonRestApi.js +9 -9
- package/dist/esm/PersonRestApi.js.map +1 -1
- package/dist/esm/PhoneListAgent.d.ts +2 -2
- package/dist/esm/PhoneListAgent.d.ts.map +1 -1
- package/dist/esm/PhoneListAgent.js +11 -11
- package/dist/esm/PhoneListAgent.js.map +1 -1
- package/dist/esm/PocketAgent.d.ts +3 -3
- package/dist/esm/PocketAgent.d.ts.map +1 -1
- package/dist/esm/PocketAgent.js +16 -16
- package/dist/esm/PocketAgent.js.map +1 -1
- package/dist/esm/PreferenceAgent.d.ts +3 -3
- package/dist/esm/PreferenceAgent.d.ts.map +1 -1
- package/dist/esm/PreferenceAgent.js +42 -42
- package/dist/esm/PreferenceAgent.js.map +1 -1
- package/dist/esm/PreviewsAgent.d.ts +2 -2
- package/dist/esm/PreviewsAgent.d.ts.map +1 -1
- package/dist/esm/PreviewsAgent.js +3 -3
- package/dist/esm/PreviewsAgent.js.map +1 -1
- package/dist/esm/ProjectAgent.d.ts +2 -2
- package/dist/esm/ProjectAgent.d.ts.map +1 -1
- package/dist/esm/ProjectAgent.js +56 -56
- package/dist/esm/ProjectAgent.js.map +1 -1
- package/dist/esm/ProjectRestApi.d.ts +2 -2
- package/dist/esm/ProjectRestApi.d.ts.map +1 -1
- package/dist/esm/ProjectRestApi.js +9 -9
- package/dist/esm/ProjectRestApi.js.map +1 -1
- package/dist/esm/QuoteAgent.d.ts +3 -3
- package/dist/esm/QuoteAgent.d.ts.map +1 -1
- package/dist/esm/QuoteAgent.js +101 -101
- package/dist/esm/QuoteAgent.js.map +1 -1
- package/dist/esm/RelationAgent.d.ts +2 -2
- package/dist/esm/RelationAgent.d.ts.map +1 -1
- package/dist/esm/RelationAgent.js +7 -7
- package/dist/esm/RelationAgent.js.map +1 -1
- package/dist/esm/ReportAgent.d.ts +2 -2
- package/dist/esm/ReportAgent.d.ts.map +1 -1
- package/dist/esm/ReportAgent.js +7 -7
- package/dist/esm/ReportAgent.js.map +1 -1
- package/dist/esm/ResourceAgent.d.ts +2 -2
- package/dist/esm/ResourceAgent.d.ts.map +1 -1
- package/dist/esm/ResourceAgent.js +8 -8
- package/dist/esm/ResourceAgent.js.map +1 -1
- package/dist/esm/SaintAgent.d.ts +2 -2
- package/dist/esm/SaintAgent.d.ts.map +1 -1
- package/dist/esm/SaintAgent.js +17 -17
- package/dist/esm/SaintAgent.js.map +1 -1
- package/dist/esm/SaleAgent.d.ts +3 -3
- package/dist/esm/SaleAgent.d.ts.map +1 -1
- package/dist/esm/SaleAgent.js +45 -45
- package/dist/esm/SaleAgent.js.map +1 -1
- package/dist/esm/SaleRestApi.d.ts +2 -2
- package/dist/esm/SaleRestApi.d.ts.map +1 -1
- package/dist/esm/SaleRestApi.js +9 -9
- package/dist/esm/SaleRestApi.js.map +1 -1
- package/dist/esm/SelectionAgent.d.ts +3 -3
- package/dist/esm/SelectionAgent.d.ts.map +1 -1
- package/dist/esm/SelectionAgent.js +60 -60
- package/dist/esm/SelectionAgent.js.map +1 -1
- package/dist/esm/SentryAgent.d.ts +2 -2
- package/dist/esm/SentryAgent.d.ts.map +1 -1
- package/dist/esm/SentryAgent.js +11 -11
- package/dist/esm/SentryAgent.js.map +1 -1
- package/dist/esm/TargetsAgent.d.ts +3 -3
- package/dist/esm/TargetsAgent.d.ts.map +1 -1
- package/dist/esm/TargetsAgent.js +28 -28
- package/dist/esm/TargetsAgent.js.map +1 -1
- package/dist/esm/TicketAgent.d.ts +3 -3
- package/dist/esm/TicketAgent.d.ts.map +1 -1
- package/dist/esm/TicketAgent.js +72 -72
- package/dist/esm/TicketAgent.js.map +1 -1
- package/dist/esm/TimeZoneAgent.d.ts +2 -2
- package/dist/esm/TimeZoneAgent.d.ts.map +1 -1
- package/dist/esm/TimeZoneAgent.js +15 -15
- package/dist/esm/TimeZoneAgent.js.map +1 -1
- package/dist/esm/TooltipsAgent.d.ts +2 -2
- package/dist/esm/TooltipsAgent.d.ts.map +1 -1
- package/dist/esm/TooltipsAgent.js +3 -3
- package/dist/esm/TooltipsAgent.js.map +1 -1
- package/dist/esm/UserAgent.d.ts +3 -3
- package/dist/esm/UserAgent.d.ts.map +1 -1
- package/dist/esm/UserAgent.js +99 -99
- package/dist/esm/UserAgent.js.map +1 -1
- package/dist/esm/UserDefinedFieldInfoAgent.d.ts +3 -3
- package/dist/esm/UserDefinedFieldInfoAgent.d.ts.map +1 -1
- package/dist/esm/UserDefinedFieldInfoAgent.js +36 -36
- package/dist/esm/UserDefinedFieldInfoAgent.js.map +1 -1
- package/dist/esm/ViewStateAgent.d.ts +2 -2
- package/dist/esm/ViewStateAgent.d.ts.map +1 -1
- package/dist/esm/ViewStateAgent.js +19 -19
- package/dist/esm/ViewStateAgent.js.map +1 -1
- package/dist/esm/WebApi.d.ts +67 -67
- package/dist/esm/WebApi.d.ts.map +1 -1
- package/dist/esm/WebApi.js +68 -68
- package/dist/esm/WebApi.js.map +1 -1
- package/dist/esm/WebApiBase.d.ts +6 -3
- package/dist/esm/WebApiBase.d.ts.map +1 -1
- package/dist/esm/WebApiBase.js +7 -6
- package/dist/esm/WebApiBase.js.map +1 -1
- package/dist/esm/WebhookAgent.d.ts +3 -3
- package/dist/esm/WebhookAgent.d.ts.map +1 -1
- package/dist/esm/WebhookAgent.js +11 -11
- package/dist/esm/WebhookAgent.js.map +1 -1
- package/dist/esm/WorkflowAgent.d.ts +3 -3
- package/dist/esm/WorkflowAgent.d.ts.map +1 -1
- package/dist/esm/WorkflowAgent.js +37 -37
- package/dist/esm/WorkflowAgent.js.map +1 -1
- package/dist/esm/package.json +3 -1
- package/package.json +9 -7
- package/scripts/postbuild.js +22 -0
- package/scripts/setVersion.js +2 -4
- package/src/AIAgent.ts +392 -91
- package/src/AppointmentAgent.ts +318 -318
- package/src/AppointmentRestApi.ts +17 -17
- package/src/ArchiveAgent.ts +96 -96
- package/src/AssociateAgent.ts +29 -29
- package/src/BLOBAgent.ts +128 -128
- package/src/BatchAgent.ts +54 -54
- package/src/BulkUpdateAgent.ts +31 -31
- package/src/CRMScriptAgent.ts +80 -80
- package/src/Carriers.ts +266 -3
- package/src/ChatAgent.ts +78 -78
- package/src/ConfigurationAgent.ts +115 -115
- package/src/ContactAgent.ts +96 -96
- package/src/ContactRestApi.ts +23 -23
- package/src/Converters.ts +217 -5
- package/src/CustomerServiceAgent.ts +97 -97
- package/src/DashAgent.ts +93 -93
- package/src/DatabaseAgent.ts +11 -11
- package/src/DatabaseTableAgent.ts +33 -33
- package/src/DiagnosticsAgent.ts +63 -63
- package/src/DocumentAgent.ts +271 -271
- package/src/DocumentMigrationAgent.ts +32 -32
- package/src/DocumentRestApi.ts +34 -34
- package/src/EMailAgent.ts +282 -282
- package/src/Enums.ts +60 -0
- package/src/ErpSyncAgent.ts +142 -142
- package/src/FavouriteAgent.ts +42 -42
- package/src/FindAgent.ts +117 -117
- package/src/ForeignSystemAgent.ts +91 -91
- package/src/FreeTextAgent.ts +25 -25
- package/src/ImportAgent.ts +21 -21
- package/src/LicenseAgent.ts +69 -69
- package/src/ListAgent.ts +819 -609
- package/src/MDOAgent.ts +43 -43
- package/src/MarketingAgent.ts +53 -53
- package/src/MessagingAgent.ts +26 -26
- package/src/NavigatorAgent.ts +14 -14
- package/src/NumberAllocationAgent.ts +21 -21
- package/src/PersonAgent.ts +174 -174
- package/src/PersonRestApi.ts +25 -25
- package/src/PhoneListAgent.ts +29 -29
- package/src/PocketAgent.ts +46 -46
- package/src/PreferenceAgent.ts +104 -104
- package/src/PreviewsAgent.ts +12 -12
- package/src/ProjectAgent.ts +134 -134
- package/src/ProjectRestApi.ts +24 -24
- package/src/QuoteAgent.ts +271 -271
- package/src/RelationAgent.ts +18 -18
- package/src/ReportAgent.ts +14 -14
- package/src/ResourceAgent.ts +24 -24
- package/src/SaintAgent.ts +35 -35
- package/src/SaleAgent.ts +114 -114
- package/src/SaleRestApi.ts +21 -21
- package/src/SelectionAgent.ts +171 -171
- package/src/SentryAgent.ts +29 -29
- package/src/TargetsAgent.ts +62 -62
- package/src/TicketAgent.ts +198 -198
- package/src/TimeZoneAgent.ts +29 -29
- package/src/TooltipsAgent.ts +12 -12
- package/src/UserAgent.ts +261 -261
- package/src/UserDefinedFieldInfoAgent.ts +97 -97
- package/src/ViewStateAgent.ts +50 -50
- package/src/WebApi.ts +74 -74
- package/src/WebApiBase.ts +9 -6
- package/src/WebhookAgent.ts +27 -27
- package/src/WorkflowAgent.ts +75 -75
- package/tsconfig.jest.json +2 -6
- package/tsconfig.json +0 -1
package/src/ProjectAgent.ts
CHANGED
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
|
|
18
18
|
import { AxiosRequestConfig } from 'axios';
|
|
19
19
|
import { Duration } from 'dayjs/plugin/duration';
|
|
20
|
-
import * as enums from './Enums
|
|
21
|
-
import * as base from './WebApiBase
|
|
22
|
-
import * as carriers from './Carriers
|
|
23
|
-
import * as converters from './Converters
|
|
24
|
-
import { FromBase64ToString, ToBase64 } from './Base64
|
|
20
|
+
import * as enums from './Enums';
|
|
21
|
+
import * as base from './WebApiBase';
|
|
22
|
+
import * as carriers from './Carriers';
|
|
23
|
+
import * as converters from './Converters';
|
|
24
|
+
import { FromBase64ToString, ToBase64 } from './Base64';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Collection of all services that works with Project data.
|
|
@@ -129,9 +129,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
129
129
|
constructor(options: base.WebApiOptions);
|
|
130
130
|
|
|
131
131
|
constructor(baseUrlOrOptions: string|base.WebApiOptions|undefined,
|
|
132
|
-
langOrconfigOrRM?: string|base.ResourceParsing|AxiosRequestConfig|any,
|
|
133
|
-
langOrResourceOrRM?:string|base.ResourceParsing|any,
|
|
134
|
-
cultureCode?: string,
|
|
132
|
+
langOrconfigOrRM?: string|base.ResourceParsing|AxiosRequestConfig|any,
|
|
133
|
+
langOrResourceOrRM?:string|base.ResourceParsing|any,
|
|
134
|
+
cultureCode?: string,
|
|
135
135
|
) {
|
|
136
136
|
const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
|
|
137
137
|
options.basePath = "v1/Agents/Project/";
|
|
@@ -152,7 +152,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
152
152
|
return new Promise< carriers.ProjectEntity >(async (resolve, reject) => {
|
|
153
153
|
try {
|
|
154
154
|
const response = await this._axios.post("CreateDefaultProjectEntity", null, config);
|
|
155
|
-
base.WebApiBase.SetCompleted(options);
|
|
155
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
156
156
|
const res : carriers.ProjectEntity = converters.Create_ProjectEntity_From( response.data );
|
|
157
157
|
resolve(res);
|
|
158
158
|
}
|
|
@@ -174,7 +174,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
174
174
|
return new Promise< carriers.ProjectEntity >(async (resolve, reject) => {
|
|
175
175
|
try {
|
|
176
176
|
const response = await this._axios.post("SaveProjectEntity", entity, config);
|
|
177
|
-
base.WebApiBase.SetCompleted(options);
|
|
177
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
178
178
|
const res : carriers.ProjectEntity = converters.Create_ProjectEntity_From( response.data );
|
|
179
179
|
resolve(res);
|
|
180
180
|
}
|
|
@@ -196,7 +196,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
196
196
|
return new Promise< void >(async (resolve, reject) => {
|
|
197
197
|
try {
|
|
198
198
|
const response = await this._axios.post("DeleteProjectEntity?ProjectEntityId=" + ProjectEntityId, null, config );
|
|
199
|
-
base.WebApiBase.SetCompleted(options);
|
|
199
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
200
200
|
const res = response.data;
|
|
201
201
|
resolve(res);
|
|
202
202
|
}
|
|
@@ -219,7 +219,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
219
219
|
return new Promise< carriers.ProjectEventEntity >(async (resolve, reject) => {
|
|
220
220
|
try {
|
|
221
221
|
const response = await this._axios.post("CreateDefaultProjectEventEntity", null, config);
|
|
222
|
-
base.WebApiBase.SetCompleted(options);
|
|
222
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
223
223
|
const res : carriers.ProjectEventEntity = converters.Create_ProjectEventEntity_From( response.data );
|
|
224
224
|
resolve(res);
|
|
225
225
|
}
|
|
@@ -241,7 +241,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
241
241
|
return new Promise< carriers.ProjectEventEntity >(async (resolve, reject) => {
|
|
242
242
|
try {
|
|
243
243
|
const response = await this._axios.post("SaveProjectEventEntity", entity, config);
|
|
244
|
-
base.WebApiBase.SetCompleted(options);
|
|
244
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
245
245
|
const res : carriers.ProjectEventEntity = converters.Create_ProjectEventEntity_From( response.data );
|
|
246
246
|
resolve(res);
|
|
247
247
|
}
|
|
@@ -263,7 +263,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
263
263
|
return new Promise< void >(async (resolve, reject) => {
|
|
264
264
|
try {
|
|
265
265
|
const response = await this._axios.post("DeleteProjectEventEntity?ProjectEventEntityId=" + ProjectEventEntityId, null, config );
|
|
266
|
-
base.WebApiBase.SetCompleted(options);
|
|
266
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
267
267
|
const res = response.data;
|
|
268
268
|
resolve(res);
|
|
269
269
|
}
|
|
@@ -286,7 +286,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
286
286
|
return new Promise< carriers.ProjectMember >(async (resolve, reject) => {
|
|
287
287
|
try {
|
|
288
288
|
const response = await this._axios.post("CreateDefaultProjectMember", null, config);
|
|
289
|
-
base.WebApiBase.SetCompleted(options);
|
|
289
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
290
290
|
const res : carriers.ProjectMember = converters.Create_ProjectMember_From( response.data );
|
|
291
291
|
resolve(res);
|
|
292
292
|
}
|
|
@@ -308,7 +308,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
308
308
|
return new Promise< carriers.ProjectMember >(async (resolve, reject) => {
|
|
309
309
|
try {
|
|
310
310
|
const response = await this._axios.post("SaveProjectMember", entity, config);
|
|
311
|
-
base.WebApiBase.SetCompleted(options);
|
|
311
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
312
312
|
const res : carriers.ProjectMember = converters.Create_ProjectMember_From( response.data );
|
|
313
313
|
resolve(res);
|
|
314
314
|
}
|
|
@@ -330,7 +330,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
330
330
|
return new Promise< void >(async (resolve, reject) => {
|
|
331
331
|
try {
|
|
332
332
|
const response = await this._axios.post("DeleteProjectMember?ProjectMemberId=" + ProjectMemberId, null, config );
|
|
333
|
-
base.WebApiBase.SetCompleted(options);
|
|
333
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
334
334
|
const res = response.data;
|
|
335
335
|
resolve(res);
|
|
336
336
|
}
|
|
@@ -352,8 +352,8 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
352
352
|
return new Promise< carriers.Project >(async (resolve, reject) => {
|
|
353
353
|
try {
|
|
354
354
|
const response = await this._axios.post("GetProject?projectId=" + projectId, null, config);
|
|
355
|
-
base.WebApiBase.SetCompleted(options);
|
|
356
|
-
const res = converters.Create_Project_From( response.data );
|
|
355
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
356
|
+
const res = converters.Create_Project_From( response.data );
|
|
357
357
|
resolve(res);
|
|
358
358
|
}
|
|
359
359
|
catch( err ) {
|
|
@@ -375,8 +375,8 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
375
375
|
return new Promise< carriers.ProjectEntity >(async (resolve, reject) => {
|
|
376
376
|
try {
|
|
377
377
|
const response = await this._axios.post("GetProjectEntity?projectEntityId=" + projectEntityId, null, config);
|
|
378
|
-
base.WebApiBase.SetCompleted(options);
|
|
379
|
-
const res = converters.Create_ProjectEntity_From( response.data );
|
|
378
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
379
|
+
const res = converters.Create_ProjectEntity_From( response.data );
|
|
380
380
|
resolve(res);
|
|
381
381
|
}
|
|
382
382
|
catch( err ) {
|
|
@@ -394,7 +394,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
394
394
|
try {
|
|
395
395
|
config.baseURL = this._options.baseUrl;
|
|
396
396
|
const response = await this._axios.post("AddProjectMembers", request , config);
|
|
397
|
-
base.WebApiBase.SetCompleted(options);
|
|
397
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
398
398
|
const res = response.data;
|
|
399
399
|
resolve(res);
|
|
400
400
|
}
|
|
@@ -433,10 +433,10 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
433
433
|
}
|
|
434
434
|
else
|
|
435
435
|
{
|
|
436
|
-
_request = {
|
|
436
|
+
_request = {
|
|
437
437
|
projectEntityId: projectEntityId as number,
|
|
438
438
|
projectMembers: projectMembers as carriers.ProjectMember[],
|
|
439
|
-
};
|
|
439
|
+
};
|
|
440
440
|
_options = webapi_options;
|
|
441
441
|
}
|
|
442
442
|
return this._addProjectMembersAsync( _request, _options );
|
|
@@ -450,7 +450,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
450
450
|
try {
|
|
451
451
|
config.baseURL = this._options.baseUrl;
|
|
452
452
|
const response = await this._axios.post("DeleteProjectMembers", request , config);
|
|
453
|
-
base.WebApiBase.SetCompleted(options);
|
|
453
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
454
454
|
const res = response.data;
|
|
455
455
|
resolve(res);
|
|
456
456
|
}
|
|
@@ -489,10 +489,10 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
489
489
|
}
|
|
490
490
|
else
|
|
491
491
|
{
|
|
492
|
-
_request = {
|
|
492
|
+
_request = {
|
|
493
493
|
projectEntityId: projectEntityId as number,
|
|
494
494
|
memberIds: memberIds as number[],
|
|
495
|
-
};
|
|
495
|
+
};
|
|
496
496
|
_options = webapi_options;
|
|
497
497
|
}
|
|
498
498
|
return this._deleteProjectMembersAsync( _request, _options );
|
|
@@ -511,7 +511,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
511
511
|
}
|
|
512
512
|
config.baseURL = this._options.baseUrl;
|
|
513
513
|
const response = await this._axios.post("GetProjectImage", request , config);
|
|
514
|
-
base.WebApiBase.SetCompleted(options);
|
|
514
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
515
515
|
let res : ArrayBuffer | string = null;
|
|
516
516
|
if( options && options.returnBlobAs != base.ReturnBlobType.AsArrayBuffer )
|
|
517
517
|
{
|
|
@@ -520,8 +520,8 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
520
520
|
{
|
|
521
521
|
res = FromBase64ToString(res);
|
|
522
522
|
}
|
|
523
|
-
}
|
|
524
|
-
else
|
|
523
|
+
}
|
|
524
|
+
else
|
|
525
525
|
{
|
|
526
526
|
res = response.data as ArrayBuffer;
|
|
527
527
|
}
|
|
@@ -562,9 +562,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
562
562
|
}
|
|
563
563
|
else
|
|
564
564
|
{
|
|
565
|
-
_request = {
|
|
565
|
+
_request = {
|
|
566
566
|
projectId: projectId as number,
|
|
567
|
-
};
|
|
567
|
+
};
|
|
568
568
|
_options = webapi_options;
|
|
569
569
|
}
|
|
570
570
|
return this._getProjectImageAsync( _request, _options );
|
|
@@ -578,7 +578,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
578
578
|
try {
|
|
579
579
|
config.baseURL = this._options.baseUrl;
|
|
580
580
|
const response = await this._axios.post("SetProjectImage", request , config);
|
|
581
|
-
base.WebApiBase.SetCompleted(options);
|
|
581
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
582
582
|
const res = response.data;
|
|
583
583
|
resolve(res);
|
|
584
584
|
}
|
|
@@ -617,10 +617,10 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
617
617
|
}
|
|
618
618
|
else
|
|
619
619
|
{
|
|
620
|
-
_request = {
|
|
620
|
+
_request = {
|
|
621
621
|
projectId: projectId as number,
|
|
622
622
|
image: image as ArrayBuffer|string,
|
|
623
|
-
};
|
|
623
|
+
};
|
|
624
624
|
_options = webapi_options;
|
|
625
625
|
}
|
|
626
626
|
_request.image = ToBase64(_request.image);
|
|
@@ -635,7 +635,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
635
635
|
try {
|
|
636
636
|
config.baseURL = this._options.baseUrl;
|
|
637
637
|
const response = await this._axios.post("DeleteProjectMemberByIds", request , config);
|
|
638
|
-
base.WebApiBase.SetCompleted(options);
|
|
638
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
639
639
|
const res = response.data;
|
|
640
640
|
resolve(res);
|
|
641
641
|
}
|
|
@@ -673,9 +673,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
673
673
|
}
|
|
674
674
|
else
|
|
675
675
|
{
|
|
676
|
-
_request = {
|
|
676
|
+
_request = {
|
|
677
677
|
projectMemberIds: projectMemberIds as number[],
|
|
678
|
-
};
|
|
678
|
+
};
|
|
679
679
|
_options = webapi_options;
|
|
680
680
|
}
|
|
681
681
|
return this._deleteProjectMemberByIdsAsync( _request, _options );
|
|
@@ -689,7 +689,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
689
689
|
try {
|
|
690
690
|
config.baseURL = this._options.baseUrl;
|
|
691
691
|
const response = await this._axios.post("GetDuplicates", request , config);
|
|
692
|
-
base.WebApiBase.SetCompleted(options);
|
|
692
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
693
693
|
const res : carriers.DuplicateEntry[] = converters.Create_DuplicateEntryArray_From( response.data );
|
|
694
694
|
resolve(res);
|
|
695
695
|
}
|
|
@@ -727,9 +727,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
727
727
|
}
|
|
728
728
|
else
|
|
729
729
|
{
|
|
730
|
-
_request = {
|
|
730
|
+
_request = {
|
|
731
731
|
name: name as string,
|
|
732
|
-
};
|
|
732
|
+
};
|
|
733
733
|
_options = webapi_options;
|
|
734
734
|
}
|
|
735
735
|
return this._getDuplicatesAsync( _request, _options );
|
|
@@ -743,7 +743,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
743
743
|
try {
|
|
744
744
|
config.baseURL = this._options.baseUrl;
|
|
745
745
|
const response = await this._axios.post("CreateNewEntry", request , config);
|
|
746
|
-
base.WebApiBase.SetCompleted(options);
|
|
746
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
747
747
|
const res : number = response.data as number;
|
|
748
748
|
resolve(res);
|
|
749
749
|
}
|
|
@@ -781,9 +781,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
781
781
|
}
|
|
782
782
|
else
|
|
783
783
|
{
|
|
784
|
-
_request = {
|
|
784
|
+
_request = {
|
|
785
785
|
duplicate: duplicate as carriers.DuplicateEntry,
|
|
786
|
-
};
|
|
786
|
+
};
|
|
787
787
|
_options = webapi_options;
|
|
788
788
|
}
|
|
789
789
|
return this._createNewEntryAsync( _request, _options );
|
|
@@ -797,7 +797,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
797
797
|
try {
|
|
798
798
|
config.baseURL = this._options.baseUrl;
|
|
799
799
|
const response = await this._axios.post("SetDuplicateRulesStatus", request , config);
|
|
800
|
-
base.WebApiBase.SetCompleted(options);
|
|
800
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
801
801
|
const res = response.data;
|
|
802
802
|
resolve(res);
|
|
803
803
|
}
|
|
@@ -835,9 +835,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
835
835
|
}
|
|
836
836
|
else
|
|
837
837
|
{
|
|
838
|
-
_request = {
|
|
838
|
+
_request = {
|
|
839
839
|
rules: rules as carriers.DuplicateRule[],
|
|
840
|
-
};
|
|
840
|
+
};
|
|
841
841
|
_options = webapi_options;
|
|
842
842
|
}
|
|
843
843
|
return this._setDuplicateRulesStatusAsync( _request, _options );
|
|
@@ -851,7 +851,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
851
851
|
try {
|
|
852
852
|
config.baseURL = this._options.baseUrl;
|
|
853
853
|
const response = await this._axios.post("GetDuplicateRules", undefined , config);
|
|
854
|
-
base.WebApiBase.SetCompleted(options);
|
|
854
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
855
855
|
const res : carriers.DuplicateRule[] = converters.Create_DuplicateRuleArray_From( response.data );
|
|
856
856
|
resolve(res);
|
|
857
857
|
}
|
|
@@ -880,7 +880,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
880
880
|
try {
|
|
881
881
|
config.baseURL = this._options.baseUrl;
|
|
882
882
|
const response = await this._axios.post("Merge", request , config);
|
|
883
|
-
base.WebApiBase.SetCompleted(options);
|
|
883
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
884
884
|
const res = response.data;
|
|
885
885
|
resolve(res);
|
|
886
886
|
}
|
|
@@ -920,11 +920,11 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
920
920
|
}
|
|
921
921
|
else
|
|
922
922
|
{
|
|
923
|
-
_request = {
|
|
923
|
+
_request = {
|
|
924
924
|
sourceProjectId: sourceProjectId as number,
|
|
925
925
|
destinationProjectId: destinationProjectId as number,
|
|
926
926
|
replaceEmptyFieldsOnDestination: replaceEmptyFieldsOnDestination as boolean,
|
|
927
|
-
};
|
|
927
|
+
};
|
|
928
928
|
_options = webapi_options;
|
|
929
929
|
}
|
|
930
930
|
return this._mergeAsync( _request, _options );
|
|
@@ -938,7 +938,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
938
938
|
try {
|
|
939
939
|
config.baseURL = this._options.baseUrl;
|
|
940
940
|
const response = await this._axios.post("IsNumberValid", request , config);
|
|
941
|
-
base.WebApiBase.SetCompleted(options);
|
|
941
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
942
942
|
const res : boolean = response.data as boolean;
|
|
943
943
|
resolve(res);
|
|
944
944
|
}
|
|
@@ -977,10 +977,10 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
977
977
|
}
|
|
978
978
|
else
|
|
979
979
|
{
|
|
980
|
-
_request = {
|
|
980
|
+
_request = {
|
|
981
981
|
contactId: contactId as number,
|
|
982
982
|
number: number as string,
|
|
983
|
-
};
|
|
983
|
+
};
|
|
984
984
|
_options = webapi_options;
|
|
985
985
|
}
|
|
986
986
|
return this._isNumberValidAsync( _request, _options );
|
|
@@ -994,7 +994,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
994
994
|
try {
|
|
995
995
|
config.baseURL = this._options.baseUrl;
|
|
996
996
|
const response = await this._axios.post("HasGuide", request , config);
|
|
997
|
-
base.WebApiBase.SetCompleted(options);
|
|
997
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
998
998
|
const res : boolean = response.data as boolean;
|
|
999
999
|
resolve(res);
|
|
1000
1000
|
}
|
|
@@ -1032,9 +1032,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
else
|
|
1034
1034
|
{
|
|
1035
|
-
_request = {
|
|
1035
|
+
_request = {
|
|
1036
1036
|
projectId: projectId as number,
|
|
1037
|
-
};
|
|
1037
|
+
};
|
|
1038
1038
|
_options = webapi_options;
|
|
1039
1039
|
}
|
|
1040
1040
|
return this._hasGuideAsync( _request, _options );
|
|
@@ -1048,7 +1048,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1048
1048
|
try {
|
|
1049
1049
|
config.baseURL = this._options.baseUrl;
|
|
1050
1050
|
const response = await this._axios.post("GetNextMilestone", request , config);
|
|
1051
|
-
base.WebApiBase.SetCompleted(options);
|
|
1051
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1052
1052
|
const res : carriers.Appointment = converters.Create_Appointment_From( response.data );
|
|
1053
1053
|
resolve(res);
|
|
1054
1054
|
}
|
|
@@ -1086,9 +1086,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
else
|
|
1088
1088
|
{
|
|
1089
|
-
_request = {
|
|
1089
|
+
_request = {
|
|
1090
1090
|
projectId: projectId as number,
|
|
1091
|
-
};
|
|
1091
|
+
};
|
|
1092
1092
|
_options = webapi_options;
|
|
1093
1093
|
}
|
|
1094
1094
|
return this._getNextMilestoneAsync( _request, _options );
|
|
@@ -1102,7 +1102,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1102
1102
|
try {
|
|
1103
1103
|
config.baseURL = this._options.baseUrl;
|
|
1104
1104
|
const response = await this._axios.post("OfferAutoNextStatusOnApppointmentCompleted", request , config);
|
|
1105
|
-
base.WebApiBase.SetCompleted(options);
|
|
1105
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1106
1106
|
const res : boolean = response.data as boolean;
|
|
1107
1107
|
resolve(res);
|
|
1108
1108
|
}
|
|
@@ -1140,9 +1140,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
else
|
|
1142
1142
|
{
|
|
1143
|
-
_request = {
|
|
1143
|
+
_request = {
|
|
1144
1144
|
appointmentId: appointmentId as number,
|
|
1145
|
-
};
|
|
1145
|
+
};
|
|
1146
1146
|
_options = webapi_options;
|
|
1147
1147
|
}
|
|
1148
1148
|
return this._offerAutoNextStatusOnApppointmentCompletedAsync( _request, _options );
|
|
@@ -1156,7 +1156,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1156
1156
|
try {
|
|
1157
1157
|
config.baseURL = this._options.baseUrl;
|
|
1158
1158
|
const response = await this._axios.post("GetNextProjectStatus", request , config);
|
|
1159
|
-
base.WebApiBase.SetCompleted(options);
|
|
1159
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1160
1160
|
const res : number = response.data as number;
|
|
1161
1161
|
resolve(res);
|
|
1162
1162
|
}
|
|
@@ -1194,9 +1194,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
else
|
|
1196
1196
|
{
|
|
1197
|
-
_request = {
|
|
1197
|
+
_request = {
|
|
1198
1198
|
projectId: projectId as number,
|
|
1199
|
-
};
|
|
1199
|
+
};
|
|
1200
1200
|
_options = webapi_options;
|
|
1201
1201
|
}
|
|
1202
1202
|
return this._getNextProjectStatusAsync( _request, _options );
|
|
@@ -1210,7 +1210,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1210
1210
|
try {
|
|
1211
1211
|
config.baseURL = this._options.baseUrl;
|
|
1212
1212
|
const response = await this._axios.post("HasGuideActivities", request , config);
|
|
1213
|
-
base.WebApiBase.SetCompleted(options);
|
|
1213
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1214
1214
|
const res : boolean = response.data as boolean;
|
|
1215
1215
|
resolve(res);
|
|
1216
1216
|
}
|
|
@@ -1248,9 +1248,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
else
|
|
1250
1250
|
{
|
|
1251
|
-
_request = {
|
|
1251
|
+
_request = {
|
|
1252
1252
|
projectId: projectId as number,
|
|
1253
|
-
};
|
|
1253
|
+
};
|
|
1254
1254
|
_options = webapi_options;
|
|
1255
1255
|
}
|
|
1256
1256
|
return this._hasGuideActivitiesAsync( _request, _options );
|
|
@@ -1264,7 +1264,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1264
1264
|
try {
|
|
1265
1265
|
config.baseURL = this._options.baseUrl;
|
|
1266
1266
|
const response = await this._axios.post("ValidateProjectEntity", request , config);
|
|
1267
|
-
base.WebApiBase.SetCompleted(options);
|
|
1267
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1268
1268
|
const res : carriers.StringDictionary = converters.Create_StringDictionary_From( response.data );
|
|
1269
1269
|
resolve(res);
|
|
1270
1270
|
}
|
|
@@ -1302,9 +1302,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
else
|
|
1304
1304
|
{
|
|
1305
|
-
_request = {
|
|
1305
|
+
_request = {
|
|
1306
1306
|
projectEntity: projectEntity as carriers.ProjectEntity,
|
|
1307
|
-
};
|
|
1307
|
+
};
|
|
1308
1308
|
_options = webapi_options;
|
|
1309
1309
|
}
|
|
1310
1310
|
return this._validateProjectEntityAsync( _request, _options );
|
|
@@ -1318,7 +1318,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1318
1318
|
try {
|
|
1319
1319
|
config.baseURL = this._options.baseUrl;
|
|
1320
1320
|
const response = await this._axios.post("SetCompleted", request , config);
|
|
1321
|
-
base.WebApiBase.SetCompleted(options);
|
|
1321
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1322
1322
|
const res = response.data;
|
|
1323
1323
|
resolve(res);
|
|
1324
1324
|
}
|
|
@@ -1357,10 +1357,10 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1357
1357
|
}
|
|
1358
1358
|
else
|
|
1359
1359
|
{
|
|
1360
|
-
_request = {
|
|
1360
|
+
_request = {
|
|
1361
1361
|
projectId: projectId as number,
|
|
1362
1362
|
isCompleted: isCompleted as boolean,
|
|
1363
|
-
};
|
|
1363
|
+
};
|
|
1364
1364
|
_options = webapi_options;
|
|
1365
1365
|
}
|
|
1366
1366
|
return this._setCompletedAsync( _request, _options );
|
|
@@ -1378,8 +1378,8 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1378
1378
|
return new Promise< carriers.ProjectEvent >(async (resolve, reject) => {
|
|
1379
1379
|
try {
|
|
1380
1380
|
const response = await this._axios.post("GetProjectEvent?projectEventId=" + projectEventId, null, config);
|
|
1381
|
-
base.WebApiBase.SetCompleted(options);
|
|
1382
|
-
const res = converters.Create_ProjectEvent_From( response.data );
|
|
1381
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1382
|
+
const res = converters.Create_ProjectEvent_From( response.data );
|
|
1383
1383
|
resolve(res);
|
|
1384
1384
|
}
|
|
1385
1385
|
catch( err ) {
|
|
@@ -1397,7 +1397,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1397
1397
|
try {
|
|
1398
1398
|
config.baseURL = this._options.baseUrl;
|
|
1399
1399
|
const response = await this._axios.post("GetProjectEventOnPerson", request , config);
|
|
1400
|
-
base.WebApiBase.SetCompleted(options);
|
|
1400
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1401
1401
|
const res : carriers.ProjectEvent = converters.Create_ProjectEvent_From( response.data );
|
|
1402
1402
|
resolve(res);
|
|
1403
1403
|
}
|
|
@@ -1436,10 +1436,10 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
else
|
|
1438
1438
|
{
|
|
1439
|
-
_request = {
|
|
1439
|
+
_request = {
|
|
1440
1440
|
projectId: projectId as number,
|
|
1441
1441
|
personId: personId as number,
|
|
1442
|
-
};
|
|
1442
|
+
};
|
|
1443
1443
|
_options = webapi_options;
|
|
1444
1444
|
}
|
|
1445
1445
|
return this._getProjectEventOnPersonAsync( _request, _options );
|
|
@@ -1457,8 +1457,8 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1457
1457
|
return new Promise< carriers.ProjectEventEntity >(async (resolve, reject) => {
|
|
1458
1458
|
try {
|
|
1459
1459
|
const response = await this._axios.post("GetProjectEventEntity?projectEventEntityId=" + projectEventEntityId, null, config);
|
|
1460
|
-
base.WebApiBase.SetCompleted(options);
|
|
1461
|
-
const res = converters.Create_ProjectEventEntity_From( response.data );
|
|
1460
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1461
|
+
const res = converters.Create_ProjectEventEntity_From( response.data );
|
|
1462
1462
|
resolve(res);
|
|
1463
1463
|
}
|
|
1464
1464
|
catch( err ) {
|
|
@@ -1476,7 +1476,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1476
1476
|
try {
|
|
1477
1477
|
config.baseURL = this._options.baseUrl;
|
|
1478
1478
|
const response = await this._axios.post("GetProjectEventEntityFromProjectId", request , config);
|
|
1479
|
-
base.WebApiBase.SetCompleted(options);
|
|
1479
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1480
1480
|
const res : carriers.ProjectEventEntity = converters.Create_ProjectEventEntity_From( response.data );
|
|
1481
1481
|
resolve(res);
|
|
1482
1482
|
}
|
|
@@ -1514,9 +1514,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1514
1514
|
}
|
|
1515
1515
|
else
|
|
1516
1516
|
{
|
|
1517
|
-
_request = {
|
|
1517
|
+
_request = {
|
|
1518
1518
|
projectId: projectId as number,
|
|
1519
|
-
};
|
|
1519
|
+
};
|
|
1520
1520
|
_options = webapi_options;
|
|
1521
1521
|
}
|
|
1522
1522
|
return this._getProjectEventEntityFromProjectIdAsync( _request, _options );
|
|
@@ -1530,7 +1530,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1530
1530
|
try {
|
|
1531
1531
|
config.baseURL = this._options.baseUrl;
|
|
1532
1532
|
const response = await this._axios.post("DeleteProjectEventEntityFromProjectId", request , config);
|
|
1533
|
-
base.WebApiBase.SetCompleted(options);
|
|
1533
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1534
1534
|
const res = response.data;
|
|
1535
1535
|
resolve(res);
|
|
1536
1536
|
}
|
|
@@ -1568,9 +1568,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
else
|
|
1570
1570
|
{
|
|
1571
|
-
_request = {
|
|
1571
|
+
_request = {
|
|
1572
1572
|
projectId: projectId as number,
|
|
1573
|
-
};
|
|
1573
|
+
};
|
|
1574
1574
|
_options = webapi_options;
|
|
1575
1575
|
}
|
|
1576
1576
|
return this._deleteProjectEventEntityFromProjectIdAsync( _request, _options );
|
|
@@ -1588,8 +1588,8 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1588
1588
|
return new Promise< carriers.ProjectEvent[] >(async (resolve, reject) => {
|
|
1589
1589
|
try {
|
|
1590
1590
|
const response = await this._axios.post("GetProjectEventList", projectEventIds, config);
|
|
1591
|
-
base.WebApiBase.SetCompleted(options);
|
|
1592
|
-
const res = converters.Create_ProjectEventArray_From( response.data );
|
|
1591
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1592
|
+
const res = converters.Create_ProjectEventArray_From( response.data );
|
|
1593
1593
|
resolve(res);
|
|
1594
1594
|
}
|
|
1595
1595
|
catch( err ) {
|
|
@@ -1607,7 +1607,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1607
1607
|
try {
|
|
1608
1608
|
config.baseURL = this._options.baseUrl;
|
|
1609
1609
|
const response = await this._axios.post("GetMyProjectEvents", undefined , config);
|
|
1610
|
-
base.WebApiBase.SetCompleted(options);
|
|
1610
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1611
1611
|
const res : carriers.ProjectEvent[] = converters.Create_ProjectEventArray_From( response.data );
|
|
1612
1612
|
resolve(res);
|
|
1613
1613
|
}
|
|
@@ -1636,7 +1636,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1636
1636
|
try {
|
|
1637
1637
|
config.baseURL = this._options.baseUrl;
|
|
1638
1638
|
const response = await this._axios.post("GetProjectEventsOnPerson", request , config);
|
|
1639
|
-
base.WebApiBase.SetCompleted(options);
|
|
1639
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1640
1640
|
const res : carriers.ProjectEvent[] = converters.Create_ProjectEventArray_From( response.data );
|
|
1641
1641
|
resolve(res);
|
|
1642
1642
|
}
|
|
@@ -1674,9 +1674,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
else
|
|
1676
1676
|
{
|
|
1677
|
-
_request = {
|
|
1677
|
+
_request = {
|
|
1678
1678
|
personId: personId as number,
|
|
1679
|
-
};
|
|
1679
|
+
};
|
|
1680
1680
|
_options = webapi_options;
|
|
1681
1681
|
}
|
|
1682
1682
|
return this._getProjectEventsOnPersonAsync( _request, _options );
|
|
@@ -1694,8 +1694,8 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1694
1694
|
return new Promise< carriers.Project[] >(async (resolve, reject) => {
|
|
1695
1695
|
try {
|
|
1696
1696
|
const response = await this._axios.post("GetProjectList", projectIds, config);
|
|
1697
|
-
base.WebApiBase.SetCompleted(options);
|
|
1698
|
-
const res = converters.Create_ProjectArray_From( response.data );
|
|
1697
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1698
|
+
const res = converters.Create_ProjectArray_From( response.data );
|
|
1699
1699
|
resolve(res);
|
|
1700
1700
|
}
|
|
1701
1701
|
catch( err ) {
|
|
@@ -1713,7 +1713,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1713
1713
|
try {
|
|
1714
1714
|
config.baseURL = this._options.baseUrl;
|
|
1715
1715
|
const response = await this._axios.post("GetMyProjects", request , config);
|
|
1716
|
-
base.WebApiBase.SetCompleted(options);
|
|
1716
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1717
1717
|
const res : carriers.Project[] = converters.Create_ProjectArray_From( response.data );
|
|
1718
1718
|
resolve(res);
|
|
1719
1719
|
}
|
|
@@ -1751,9 +1751,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1751
1751
|
}
|
|
1752
1752
|
else
|
|
1753
1753
|
{
|
|
1754
|
-
_request = {
|
|
1754
|
+
_request = {
|
|
1755
1755
|
includeMemberProjects: includeMemberProjects as boolean,
|
|
1756
|
-
};
|
|
1756
|
+
};
|
|
1757
1757
|
_options = webapi_options;
|
|
1758
1758
|
}
|
|
1759
1759
|
return this._getMyProjectsAsync( _request, _options );
|
|
@@ -1767,7 +1767,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1767
1767
|
try {
|
|
1768
1768
|
config.baseURL = this._options.baseUrl;
|
|
1769
1769
|
const response = await this._axios.post("GetMyMemberProjects", undefined , config);
|
|
1770
|
-
base.WebApiBase.SetCompleted(options);
|
|
1770
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1771
1771
|
const res : carriers.Project[] = converters.Create_ProjectArray_From( response.data );
|
|
1772
1772
|
resolve(res);
|
|
1773
1773
|
}
|
|
@@ -1796,7 +1796,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1796
1796
|
try {
|
|
1797
1797
|
config.baseURL = this._options.baseUrl;
|
|
1798
1798
|
const response = await this._axios.post("GetProjectsFromPerson", request , config);
|
|
1799
|
-
base.WebApiBase.SetCompleted(options);
|
|
1799
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1800
1800
|
const res : carriers.Project[] = converters.Create_ProjectArray_From( response.data );
|
|
1801
1801
|
resolve(res);
|
|
1802
1802
|
}
|
|
@@ -1834,9 +1834,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
else
|
|
1836
1836
|
{
|
|
1837
|
-
_request = {
|
|
1837
|
+
_request = {
|
|
1838
1838
|
personId: personId as number,
|
|
1839
|
-
};
|
|
1839
|
+
};
|
|
1840
1840
|
_options = webapi_options;
|
|
1841
1841
|
}
|
|
1842
1842
|
return this._getProjectsFromPersonAsync( _request, _options );
|
|
@@ -1850,7 +1850,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1850
1850
|
try {
|
|
1851
1851
|
config.baseURL = this._options.baseUrl;
|
|
1852
1852
|
const response = await this._axios.post("GetProjectsFromContact", request , config);
|
|
1853
|
-
base.WebApiBase.SetCompleted(options);
|
|
1853
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1854
1854
|
const res : carriers.Project[] = converters.Create_ProjectArray_From( response.data );
|
|
1855
1855
|
resolve(res);
|
|
1856
1856
|
}
|
|
@@ -1888,9 +1888,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
else
|
|
1890
1890
|
{
|
|
1891
|
-
_request = {
|
|
1891
|
+
_request = {
|
|
1892
1892
|
contactId: contactId as number,
|
|
1893
|
-
};
|
|
1893
|
+
};
|
|
1894
1894
|
_options = webapi_options;
|
|
1895
1895
|
}
|
|
1896
1896
|
return this._getProjectsFromContactAsync( _request, _options );
|
|
@@ -1904,7 +1904,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1904
1904
|
try {
|
|
1905
1905
|
config.baseURL = this._options.baseUrl;
|
|
1906
1906
|
const response = await this._axios.post("GetPublishedProject", request , config);
|
|
1907
|
-
base.WebApiBase.SetCompleted(options);
|
|
1907
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1908
1908
|
const res : carriers.Project = converters.Create_Project_From( response.data );
|
|
1909
1909
|
resolve(res);
|
|
1910
1910
|
}
|
|
@@ -1942,9 +1942,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1942
1942
|
}
|
|
1943
1943
|
else
|
|
1944
1944
|
{
|
|
1945
|
-
_request = {
|
|
1945
|
+
_request = {
|
|
1946
1946
|
projectId: projectId as number,
|
|
1947
|
-
};
|
|
1947
|
+
};
|
|
1948
1948
|
_options = webapi_options;
|
|
1949
1949
|
}
|
|
1950
1950
|
return this._getPublishedProjectAsync( _request, _options );
|
|
@@ -1958,7 +1958,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1958
1958
|
try {
|
|
1959
1959
|
config.baseURL = this._options.baseUrl;
|
|
1960
1960
|
const response = await this._axios.post("GetPublishedProjects", request , config);
|
|
1961
|
-
base.WebApiBase.SetCompleted(options);
|
|
1961
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1962
1962
|
const res : carriers.Project[] = converters.Create_ProjectArray_From( response.data );
|
|
1963
1963
|
resolve(res);
|
|
1964
1964
|
}
|
|
@@ -1996,9 +1996,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
else
|
|
1998
1998
|
{
|
|
1999
|
-
_request = {
|
|
1999
|
+
_request = {
|
|
2000
2000
|
projectIds: projectIds as number[],
|
|
2001
|
-
};
|
|
2001
|
+
};
|
|
2002
2002
|
_options = webapi_options;
|
|
2003
2003
|
}
|
|
2004
2004
|
return this._getPublishedProjectsAsync( _request, _options );
|
|
@@ -2012,7 +2012,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2012
2012
|
try {
|
|
2013
2013
|
config.baseURL = this._options.baseUrl;
|
|
2014
2014
|
const response = await this._axios.post("GetMyPublishedProjects", undefined , config);
|
|
2015
|
-
base.WebApiBase.SetCompleted(options);
|
|
2015
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2016
2016
|
const res : carriers.Project[] = converters.Create_ProjectArray_From( response.data );
|
|
2017
2017
|
resolve(res);
|
|
2018
2018
|
}
|
|
@@ -2041,7 +2041,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2041
2041
|
try {
|
|
2042
2042
|
config.baseURL = this._options.baseUrl;
|
|
2043
2043
|
const response = await this._axios.post("GetPublishedProjectsOnPersonId", request , config);
|
|
2044
|
-
base.WebApiBase.SetCompleted(options);
|
|
2044
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2045
2045
|
const res : carriers.Project[] = converters.Create_ProjectArray_From( response.data );
|
|
2046
2046
|
resolve(res);
|
|
2047
2047
|
}
|
|
@@ -2079,9 +2079,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
else
|
|
2081
2081
|
{
|
|
2082
|
-
_request = {
|
|
2082
|
+
_request = {
|
|
2083
2083
|
personId: personId as number,
|
|
2084
|
-
};
|
|
2084
|
+
};
|
|
2085
2085
|
_options = webapi_options;
|
|
2086
2086
|
}
|
|
2087
2087
|
return this._getPublishedProjectsOnPersonIdAsync( _request, _options );
|
|
@@ -2099,8 +2099,8 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2099
2099
|
return new Promise< carriers.ProjectMember >(async (resolve, reject) => {
|
|
2100
2100
|
try {
|
|
2101
2101
|
const response = await this._axios.post("GetProjectMember?projectMemberId=" + projectMemberId, null, config);
|
|
2102
|
-
base.WebApiBase.SetCompleted(options);
|
|
2103
|
-
const res = converters.Create_ProjectMember_From( response.data );
|
|
2102
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2103
|
+
const res = converters.Create_ProjectMember_From( response.data );
|
|
2104
2104
|
resolve(res);
|
|
2105
2105
|
}
|
|
2106
2106
|
catch( err ) {
|
|
@@ -2118,7 +2118,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2118
2118
|
try {
|
|
2119
2119
|
config.baseURL = this._options.baseUrl;
|
|
2120
2120
|
const response = await this._axios.post("UpdateProjectMembers", request , config);
|
|
2121
|
-
base.WebApiBase.SetCompleted(options);
|
|
2121
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2122
2122
|
const res = response.data;
|
|
2123
2123
|
resolve(res);
|
|
2124
2124
|
}
|
|
@@ -2157,10 +2157,10 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2157
2157
|
}
|
|
2158
2158
|
else
|
|
2159
2159
|
{
|
|
2160
|
-
_request = {
|
|
2160
|
+
_request = {
|
|
2161
2161
|
projectId: projectId as number,
|
|
2162
2162
|
projectMembers: projectMembers as carriers.ProjectMember[],
|
|
2163
|
-
};
|
|
2163
|
+
};
|
|
2164
2164
|
_options = webapi_options;
|
|
2165
2165
|
}
|
|
2166
2166
|
return this._updateProjectMembersAsync( _request, _options );
|
|
@@ -2174,7 +2174,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2174
2174
|
try {
|
|
2175
2175
|
config.baseURL = this._options.baseUrl;
|
|
2176
2176
|
const response = await this._axios.post("GetProjectMembers", request , config);
|
|
2177
|
-
base.WebApiBase.SetCompleted(options);
|
|
2177
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2178
2178
|
const res : carriers.ProjectMember[] = converters.Create_ProjectMemberArray_From( response.data );
|
|
2179
2179
|
resolve(res);
|
|
2180
2180
|
}
|
|
@@ -2212,9 +2212,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2212
2212
|
}
|
|
2213
2213
|
else
|
|
2214
2214
|
{
|
|
2215
|
-
_request = {
|
|
2215
|
+
_request = {
|
|
2216
2216
|
projectId: projectId as number,
|
|
2217
|
-
};
|
|
2217
|
+
};
|
|
2218
2218
|
_options = webapi_options;
|
|
2219
2219
|
}
|
|
2220
2220
|
return this._getProjectMembersAsync( _request, _options );
|
|
@@ -2228,7 +2228,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2228
2228
|
try {
|
|
2229
2229
|
config.baseURL = this._options.baseUrl;
|
|
2230
2230
|
const response = await this._axios.post("UpdateProjectMember", request , config);
|
|
2231
|
-
base.WebApiBase.SetCompleted(options);
|
|
2231
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2232
2232
|
const res : carriers.ProjectMember = converters.Create_ProjectMember_From( response.data );
|
|
2233
2233
|
resolve(res);
|
|
2234
2234
|
}
|
|
@@ -2266,9 +2266,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2266
2266
|
}
|
|
2267
2267
|
else
|
|
2268
2268
|
{
|
|
2269
|
-
_request = {
|
|
2269
|
+
_request = {
|
|
2270
2270
|
projectMember: projectMember as carriers.ProjectMember,
|
|
2271
|
-
};
|
|
2271
|
+
};
|
|
2272
2272
|
_options = webapi_options;
|
|
2273
2273
|
}
|
|
2274
2274
|
return this._updateProjectMemberAsync( _request, _options );
|
|
@@ -2282,7 +2282,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2282
2282
|
try {
|
|
2283
2283
|
config.baseURL = this._options.baseUrl;
|
|
2284
2284
|
const response = await this._axios.post("GetProjectMembersById", request , config);
|
|
2285
|
-
base.WebApiBase.SetCompleted(options);
|
|
2285
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2286
2286
|
const res : carriers.ProjectMember[] = converters.Create_ProjectMemberArray_From( response.data );
|
|
2287
2287
|
resolve(res);
|
|
2288
2288
|
}
|
|
@@ -2320,9 +2320,9 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2320
2320
|
}
|
|
2321
2321
|
else
|
|
2322
2322
|
{
|
|
2323
|
-
_request = {
|
|
2323
|
+
_request = {
|
|
2324
2324
|
projectMemberIds: projectMemberIds as number[],
|
|
2325
|
-
};
|
|
2325
|
+
};
|
|
2326
2326
|
_options = webapi_options;
|
|
2327
2327
|
}
|
|
2328
2328
|
return this._getProjectMembersByIdAsync( _request, _options );
|
|
@@ -2336,7 +2336,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2336
2336
|
try {
|
|
2337
2337
|
config.baseURL = this._options.baseUrl;
|
|
2338
2338
|
const response = await this._axios.post("SaveProjectMembersFunctionAndComment", request , config);
|
|
2339
|
-
base.WebApiBase.SetCompleted(options);
|
|
2339
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2340
2340
|
const res = response.data;
|
|
2341
2341
|
resolve(res);
|
|
2342
2342
|
}
|
|
@@ -2376,16 +2376,16 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
else
|
|
2378
2378
|
{
|
|
2379
|
-
_request = {
|
|
2379
|
+
_request = {
|
|
2380
2380
|
projectMemberIds: projectMemberIds as number[],
|
|
2381
2381
|
roleId: roleId as number,
|
|
2382
2382
|
comment: comment as string,
|
|
2383
|
-
};
|
|
2383
|
+
};
|
|
2384
2384
|
_options = webapi_options;
|
|
2385
2385
|
}
|
|
2386
2386
|
return this._saveProjectMembersFunctionAndCommentAsync( _request, _options );
|
|
2387
2387
|
}
|
|
2388
2388
|
|
|
2389
|
-
} // class v1ProjectAgentController
|
|
2389
|
+
} // class v1ProjectAgentController
|
|
2390
2390
|
|
|
2391
2391
|
|