@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.
Files changed (692) hide show
  1. package/LICENSE.md +15 -0
  2. package/README.md +184 -0
  3. package/__tests__/Appointment63-notz.json +1925 -0
  4. package/__tests__/Appointment63-utctz.json +1925 -0
  5. package/__tests__/Appointment63.json +1925 -0
  6. package/__tests__/AppointmentTzTest.ts +114 -0
  7. package/__tests__/AxiosNockTest.ts +28 -0
  8. package/__tests__/ContactDefault.json +699 -0
  9. package/__tests__/ContactEntity.json +273 -0
  10. package/__tests__/ContactRestTest.ts +144 -0
  11. package/__tests__/ContactTest.ts +395 -0
  12. package/__tests__/ConvertersTest.ts +97 -0
  13. package/__tests__/DocumentGetTemplateStream.json +1 -0
  14. package/__tests__/DocumentGetTemplateStreamBinary.json +1 -0
  15. package/__tests__/DocumentTest.ts +101 -0
  16. package/__tests__/Person210-notz.json +1932 -0
  17. package/__tests__/Person210-utctz.json +1932 -0
  18. package/__tests__/Person210.json +1932 -0
  19. package/__tests__/PersonImageData.nock +23 -0
  20. package/__tests__/PersonTest.ts +41 -0
  21. package/__tests__/PersonTzTest.ts +113 -0
  22. package/__tests__/RecurrenceInfo.json +55 -0
  23. package/__tests__/TableRights.json +441 -0
  24. package/__tests__/WebapiTest.ts +264 -0
  25. package/__tests__/Webhook.json +17 -0
  26. package/__tests__/WebhookTest.ts +209 -0
  27. package/dist/cjs/AIAgent.d.ts +265 -0
  28. package/dist/cjs/AIAgent.d.ts.map +1 -0
  29. package/dist/cjs/AIAgent.js +535 -0
  30. package/dist/cjs/AIAgent.js.map +1 -0
  31. package/dist/cjs/AppointmentAgent.d.ts +1539 -0
  32. package/dist/cjs/AppointmentAgent.d.ts.map +1 -0
  33. package/dist/cjs/AppointmentAgent.js +3363 -0
  34. package/dist/cjs/AppointmentAgent.js.map +1 -0
  35. package/dist/cjs/AppointmentRestApi.d.ts +46 -0
  36. package/dist/cjs/AppointmentRestApi.d.ts.map +1 -0
  37. package/dist/cjs/AppointmentRestApi.js +168 -0
  38. package/dist/cjs/AppointmentRestApi.js.map +1 -0
  39. package/dist/cjs/ArchiveAgent.d.ts +582 -0
  40. package/dist/cjs/ArchiveAgent.d.ts.map +1 -0
  41. package/dist/cjs/ArchiveAgent.js +1135 -0
  42. package/dist/cjs/ArchiveAgent.js.map +1 -0
  43. package/dist/cjs/AssociateAgent.d.ts +109 -0
  44. package/dist/cjs/AssociateAgent.d.ts.map +1 -0
  45. package/dist/cjs/AssociateAgent.js +257 -0
  46. package/dist/cjs/AssociateAgent.js.map +1 -0
  47. package/dist/cjs/AudienceAgent.d.ts +359 -0
  48. package/dist/cjs/AudienceAgent.d.ts.map +1 -0
  49. package/dist/cjs/AudienceAgent.js +888 -0
  50. package/dist/cjs/AudienceAgent.js.map +1 -0
  51. package/dist/cjs/AxiosCacheHandler.d.ts +20 -0
  52. package/dist/cjs/AxiosCacheHandler.d.ts.map +1 -0
  53. package/dist/cjs/AxiosCacheHandler.js +68 -0
  54. package/dist/cjs/AxiosCacheHandler.js.map +1 -0
  55. package/dist/cjs/BLOBAgent.d.ts +538 -0
  56. package/dist/cjs/BLOBAgent.d.ts.map +1 -0
  57. package/dist/cjs/BLOBAgent.js +1364 -0
  58. package/dist/cjs/BLOBAgent.js.map +1 -0
  59. package/dist/cjs/Base64.d.ts +4 -0
  60. package/dist/cjs/Base64.d.ts.map +1 -0
  61. package/dist/cjs/Base64.js +233 -0
  62. package/dist/cjs/Base64.js.map +1 -0
  63. package/dist/cjs/BatchAgent.d.ts +252 -0
  64. package/dist/cjs/BatchAgent.d.ts.map +1 -0
  65. package/dist/cjs/BatchAgent.js +522 -0
  66. package/dist/cjs/BatchAgent.js.map +1 -0
  67. package/dist/cjs/BulkUpdateAgent.d.ts +144 -0
  68. package/dist/cjs/BulkUpdateAgent.d.ts.map +1 -0
  69. package/dist/cjs/BulkUpdateAgent.js +288 -0
  70. package/dist/cjs/BulkUpdateAgent.js.map +1 -0
  71. package/dist/cjs/CRMScriptAgent.d.ts +330 -0
  72. package/dist/cjs/CRMScriptAgent.d.ts.map +1 -0
  73. package/dist/cjs/CRMScriptAgent.js +799 -0
  74. package/dist/cjs/CRMScriptAgent.js.map +1 -0
  75. package/dist/cjs/Carriers.d.ts +36976 -0
  76. package/dist/cjs/Carriers.d.ts.map +1 -0
  77. package/dist/cjs/Carriers.js +8 -0
  78. package/dist/cjs/Carriers.js.map +1 -0
  79. package/dist/cjs/ChatAgent.d.ts +366 -0
  80. package/dist/cjs/ChatAgent.d.ts.map +1 -0
  81. package/dist/cjs/ChatAgent.js +919 -0
  82. package/dist/cjs/ChatAgent.js.map +1 -0
  83. package/dist/cjs/ConfigurationAgent.d.ts +534 -0
  84. package/dist/cjs/ConfigurationAgent.d.ts.map +1 -0
  85. package/dist/cjs/ConfigurationAgent.js +1429 -0
  86. package/dist/cjs/ConfigurationAgent.js.map +1 -0
  87. package/dist/cjs/ContactAgent.d.ts +415 -0
  88. package/dist/cjs/ContactAgent.d.ts.map +1 -0
  89. package/dist/cjs/ContactAgent.js +1005 -0
  90. package/dist/cjs/ContactAgent.js.map +1 -0
  91. package/dist/cjs/ContactRestApi.d.ts +46 -0
  92. package/dist/cjs/ContactRestApi.d.ts.map +1 -0
  93. package/dist/cjs/ContactRestApi.js +168 -0
  94. package/dist/cjs/ContactRestApi.js.map +1 -0
  95. package/dist/cjs/Converters.d.ts +1359 -0
  96. package/dist/cjs/Converters.d.ts.map +1 -0
  97. package/dist/cjs/Converters.js +18996 -0
  98. package/dist/cjs/Converters.js.map +1 -0
  99. package/dist/cjs/CustomerServiceAgent.d.ts +447 -0
  100. package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -0
  101. package/dist/cjs/CustomerServiceAgent.js +1123 -0
  102. package/dist/cjs/CustomerServiceAgent.js.map +1 -0
  103. package/dist/cjs/DashAgent.d.ts +370 -0
  104. package/dist/cjs/DashAgent.d.ts.map +1 -0
  105. package/dist/cjs/DashAgent.js +1028 -0
  106. package/dist/cjs/DashAgent.js.map +1 -0
  107. package/dist/cjs/DashboardAgent.d.ts +163 -0
  108. package/dist/cjs/DashboardAgent.d.ts.map +1 -0
  109. package/dist/cjs/DashboardAgent.js +436 -0
  110. package/dist/cjs/DashboardAgent.js.map +1 -0
  111. package/dist/cjs/DatabaseAgent.d.ts +35 -0
  112. package/dist/cjs/DatabaseAgent.d.ts.map +1 -0
  113. package/dist/cjs/DatabaseAgent.js +70 -0
  114. package/dist/cjs/DatabaseAgent.js.map +1 -0
  115. package/dist/cjs/DatabaseTableAgent.d.ts +155 -0
  116. package/dist/cjs/DatabaseTableAgent.d.ts.map +1 -0
  117. package/dist/cjs/DatabaseTableAgent.js +299 -0
  118. package/dist/cjs/DatabaseTableAgent.js.map +1 -0
  119. package/dist/cjs/Day_js.d.ts +4 -0
  120. package/dist/cjs/Day_js.d.ts.map +1 -0
  121. package/dist/cjs/Day_js.js +44 -0
  122. package/dist/cjs/Day_js.js.map +1 -0
  123. package/dist/cjs/DiagnosticsAgent.d.ts +200 -0
  124. package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -0
  125. package/dist/cjs/DiagnosticsAgent.js +480 -0
  126. package/dist/cjs/DiagnosticsAgent.js.map +1 -0
  127. package/dist/cjs/DocumentAgent.d.ts +1345 -0
  128. package/dist/cjs/DocumentAgent.d.ts.map +1 -0
  129. package/dist/cjs/DocumentAgent.js +3058 -0
  130. package/dist/cjs/DocumentAgent.js.map +1 -0
  131. package/dist/cjs/DocumentMigrationAgent.d.ts +145 -0
  132. package/dist/cjs/DocumentMigrationAgent.d.ts.map +1 -0
  133. package/dist/cjs/DocumentMigrationAgent.js +297 -0
  134. package/dist/cjs/DocumentMigrationAgent.js.map +1 -0
  135. package/dist/cjs/DocumentRestApi.d.ts +46 -0
  136. package/dist/cjs/DocumentRestApi.d.ts.map +1 -0
  137. package/dist/cjs/DocumentRestApi.js +168 -0
  138. package/dist/cjs/DocumentRestApi.js.map +1 -0
  139. package/dist/cjs/EMailAgent.d.ts +1417 -0
  140. package/dist/cjs/EMailAgent.d.ts.map +1 -0
  141. package/dist/cjs/EMailAgent.js +3202 -0
  142. package/dist/cjs/EMailAgent.js.map +1 -0
  143. package/dist/cjs/Enums.d.ts +6083 -0
  144. package/dist/cjs/Enums.d.ts.map +1 -0
  145. package/dist/cjs/Enums.js +6270 -0
  146. package/dist/cjs/Enums.js.map +1 -0
  147. package/dist/cjs/ErpSyncAgent.d.ts +725 -0
  148. package/dist/cjs/ErpSyncAgent.d.ts.map +1 -0
  149. package/dist/cjs/ErpSyncAgent.js +1601 -0
  150. package/dist/cjs/ErpSyncAgent.js.map +1 -0
  151. package/dist/cjs/FavouriteAgent.d.ts +208 -0
  152. package/dist/cjs/FavouriteAgent.d.ts.map +1 -0
  153. package/dist/cjs/FavouriteAgent.js +407 -0
  154. package/dist/cjs/FavouriteAgent.js.map +1 -0
  155. package/dist/cjs/FindAgent.d.ts +688 -0
  156. package/dist/cjs/FindAgent.d.ts.map +1 -0
  157. package/dist/cjs/FindAgent.js +1337 -0
  158. package/dist/cjs/FindAgent.js.map +1 -0
  159. package/dist/cjs/ForeignSystemAgent.d.ts +478 -0
  160. package/dist/cjs/ForeignSystemAgent.d.ts.map +1 -0
  161. package/dist/cjs/ForeignSystemAgent.js +1022 -0
  162. package/dist/cjs/ForeignSystemAgent.js.map +1 -0
  163. package/dist/cjs/FreeTextAgent.d.ts +172 -0
  164. package/dist/cjs/FreeTextAgent.d.ts.map +1 -0
  165. package/dist/cjs/FreeTextAgent.js +368 -0
  166. package/dist/cjs/FreeTextAgent.js.map +1 -0
  167. package/dist/cjs/ImportAgent.d.ts +92 -0
  168. package/dist/cjs/ImportAgent.d.ts.map +1 -0
  169. package/dist/cjs/ImportAgent.js +164 -0
  170. package/dist/cjs/ImportAgent.js.map +1 -0
  171. package/dist/cjs/LicenseAgent.d.ts +298 -0
  172. package/dist/cjs/LicenseAgent.d.ts.map +1 -0
  173. package/dist/cjs/LicenseAgent.js +639 -0
  174. package/dist/cjs/LicenseAgent.js.map +1 -0
  175. package/dist/cjs/ListAgent.d.ts +2423 -0
  176. package/dist/cjs/ListAgent.d.ts.map +1 -0
  177. package/dist/cjs/ListAgent.js +7813 -0
  178. package/dist/cjs/ListAgent.js.map +1 -0
  179. package/dist/cjs/MDOAgent.d.ts +214 -0
  180. package/dist/cjs/MDOAgent.d.ts.map +1 -0
  181. package/dist/cjs/MDOAgent.js +430 -0
  182. package/dist/cjs/MDOAgent.js.map +1 -0
  183. package/dist/cjs/MarketingAgent.d.ts +170 -0
  184. package/dist/cjs/MarketingAgent.d.ts.map +1 -0
  185. package/dist/cjs/MarketingAgent.js +570 -0
  186. package/dist/cjs/MarketingAgent.js.map +1 -0
  187. package/dist/cjs/MessagingAgent.d.ts +111 -0
  188. package/dist/cjs/MessagingAgent.d.ts.map +1 -0
  189. package/dist/cjs/MessagingAgent.js +217 -0
  190. package/dist/cjs/MessagingAgent.js.map +1 -0
  191. package/dist/cjs/NavigatorAgent.d.ts +40 -0
  192. package/dist/cjs/NavigatorAgent.d.ts.map +1 -0
  193. package/dist/cjs/NavigatorAgent.js +99 -0
  194. package/dist/cjs/NavigatorAgent.js.map +1 -0
  195. package/dist/cjs/NumberAllocationAgent.d.ts +72 -0
  196. package/dist/cjs/NumberAllocationAgent.d.ts.map +1 -0
  197. package/dist/cjs/NumberAllocationAgent.js +199 -0
  198. package/dist/cjs/NumberAllocationAgent.js.map +1 -0
  199. package/dist/cjs/PersonAgent.d.ts +774 -0
  200. package/dist/cjs/PersonAgent.d.ts.map +1 -0
  201. package/dist/cjs/PersonAgent.js +1814 -0
  202. package/dist/cjs/PersonAgent.js.map +1 -0
  203. package/dist/cjs/PersonRestApi.d.ts +46 -0
  204. package/dist/cjs/PersonRestApi.d.ts.map +1 -0
  205. package/dist/cjs/PersonRestApi.js +168 -0
  206. package/dist/cjs/PersonRestApi.js.map +1 -0
  207. package/dist/cjs/PhoneListAgent.d.ts +126 -0
  208. package/dist/cjs/PhoneListAgent.d.ts.map +1 -0
  209. package/dist/cjs/PhoneListAgent.js +269 -0
  210. package/dist/cjs/PhoneListAgent.js.map +1 -0
  211. package/dist/cjs/PocketAgent.d.ts +218 -0
  212. package/dist/cjs/PocketAgent.d.ts.map +1 -0
  213. package/dist/cjs/PocketAgent.js +451 -0
  214. package/dist/cjs/PocketAgent.js.map +1 -0
  215. package/dist/cjs/PreferenceAgent.d.ts +497 -0
  216. package/dist/cjs/PreferenceAgent.d.ts.map +1 -0
  217. package/dist/cjs/PreferenceAgent.js +1194 -0
  218. package/dist/cjs/PreferenceAgent.js.map +1 -0
  219. package/dist/cjs/PreviewsAgent.d.ts +36 -0
  220. package/dist/cjs/PreviewsAgent.d.ts.map +1 -0
  221. package/dist/cjs/PreviewsAgent.js +54 -0
  222. package/dist/cjs/PreviewsAgent.js.map +1 -0
  223. package/dist/cjs/ProjectAgent.d.ts +558 -0
  224. package/dist/cjs/ProjectAgent.d.ts.map +1 -0
  225. package/dist/cjs/ProjectAgent.js +1482 -0
  226. package/dist/cjs/ProjectAgent.js.map +1 -0
  227. package/dist/cjs/ProjectRestApi.d.ts +46 -0
  228. package/dist/cjs/ProjectRestApi.d.ts.map +1 -0
  229. package/dist/cjs/ProjectRestApi.js +168 -0
  230. package/dist/cjs/ProjectRestApi.js.map +1 -0
  231. package/dist/cjs/QuoteAgent.d.ts +1415 -0
  232. package/dist/cjs/QuoteAgent.d.ts.map +1 -0
  233. package/dist/cjs/QuoteAgent.js +3224 -0
  234. package/dist/cjs/QuoteAgent.js.map +1 -0
  235. package/dist/cjs/RelationAgent.d.ts +61 -0
  236. package/dist/cjs/RelationAgent.d.ts.map +1 -0
  237. package/dist/cjs/RelationAgent.js +132 -0
  238. package/dist/cjs/RelationAgent.js.map +1 -0
  239. package/dist/cjs/ReplicationAgent.d.ts +77 -0
  240. package/dist/cjs/ReplicationAgent.d.ts.map +1 -0
  241. package/dist/cjs/ReplicationAgent.js +223 -0
  242. package/dist/cjs/ReplicationAgent.js.map +1 -0
  243. package/dist/cjs/ReportAgent.d.ts +144 -0
  244. package/dist/cjs/ReportAgent.d.ts.map +1 -0
  245. package/dist/cjs/ReportAgent.js +380 -0
  246. package/dist/cjs/ReportAgent.js.map +1 -0
  247. package/dist/cjs/ResourceAgent.d.ts +105 -0
  248. package/dist/cjs/ResourceAgent.d.ts.map +1 -0
  249. package/dist/cjs/ResourceAgent.js +196 -0
  250. package/dist/cjs/ResourceAgent.js.map +1 -0
  251. package/dist/cjs/SaintAgent.d.ts +157 -0
  252. package/dist/cjs/SaintAgent.d.ts.map +1 -0
  253. package/dist/cjs/SaintAgent.js +402 -0
  254. package/dist/cjs/SaintAgent.js.map +1 -0
  255. package/dist/cjs/SaleAgent.d.ts +477 -0
  256. package/dist/cjs/SaleAgent.d.ts.map +1 -0
  257. package/dist/cjs/SaleAgent.js +1182 -0
  258. package/dist/cjs/SaleAgent.js.map +1 -0
  259. package/dist/cjs/SaleRestApi.d.ts +46 -0
  260. package/dist/cjs/SaleRestApi.d.ts.map +1 -0
  261. package/dist/cjs/SaleRestApi.js +168 -0
  262. package/dist/cjs/SaleRestApi.js.map +1 -0
  263. package/dist/cjs/SelectionAgent.d.ts +814 -0
  264. package/dist/cjs/SelectionAgent.d.ts.map +1 -0
  265. package/dist/cjs/SelectionAgent.js +1795 -0
  266. package/dist/cjs/SelectionAgent.js.map +1 -0
  267. package/dist/cjs/SentryAgent.d.ts +113 -0
  268. package/dist/cjs/SentryAgent.d.ts.map +1 -0
  269. package/dist/cjs/SentryAgent.js +238 -0
  270. package/dist/cjs/SentryAgent.js.map +1 -0
  271. package/dist/cjs/SoApiConstants.d.ts +8 -0
  272. package/dist/cjs/SoApiConstants.d.ts.map +1 -0
  273. package/dist/cjs/SoApiConstants.js +12 -0
  274. package/dist/cjs/SoApiConstants.js.map +1 -0
  275. package/dist/cjs/TargetsAgent.d.ts +289 -0
  276. package/dist/cjs/TargetsAgent.d.ts.map +1 -0
  277. package/dist/cjs/TargetsAgent.js +728 -0
  278. package/dist/cjs/TargetsAgent.js.map +1 -0
  279. package/dist/cjs/TicketAgent.d.ts +802 -0
  280. package/dist/cjs/TicketAgent.d.ts.map +1 -0
  281. package/dist/cjs/TicketAgent.js +1865 -0
  282. package/dist/cjs/TicketAgent.js.map +1 -0
  283. package/dist/cjs/TimeZoneAgent.d.ts +139 -0
  284. package/dist/cjs/TimeZoneAgent.d.ts.map +1 -0
  285. package/dist/cjs/TimeZoneAgent.js +348 -0
  286. package/dist/cjs/TimeZoneAgent.js.map +1 -0
  287. package/dist/cjs/TooltipsAgent.d.ts +36 -0
  288. package/dist/cjs/TooltipsAgent.d.ts.map +1 -0
  289. package/dist/cjs/TooltipsAgent.js +54 -0
  290. package/dist/cjs/TooltipsAgent.js.map +1 -0
  291. package/dist/cjs/UserAgent.d.ts +1260 -0
  292. package/dist/cjs/UserAgent.d.ts.map +1 -0
  293. package/dist/cjs/UserAgent.js +2978 -0
  294. package/dist/cjs/UserAgent.js.map +1 -0
  295. package/dist/cjs/UserDefinedFieldInfoAgent.d.ts +474 -0
  296. package/dist/cjs/UserDefinedFieldInfoAgent.d.ts.map +1 -0
  297. package/dist/cjs/UserDefinedFieldInfoAgent.js +1067 -0
  298. package/dist/cjs/UserDefinedFieldInfoAgent.js.map +1 -0
  299. package/dist/cjs/ViewStateAgent.d.ts +230 -0
  300. package/dist/cjs/ViewStateAgent.d.ts.map +1 -0
  301. package/dist/cjs/ViewStateAgent.js +518 -0
  302. package/dist/cjs/ViewStateAgent.js.map +1 -0
  303. package/dist/cjs/WebApi.d.ts +427 -0
  304. package/dist/cjs/WebApi.d.ts.map +1 -0
  305. package/dist/cjs/WebApi.js +656 -0
  306. package/dist/cjs/WebApi.js.map +1 -0
  307. package/dist/cjs/WebApiBase.d.ts +152 -0
  308. package/dist/cjs/WebApiBase.d.ts.map +1 -0
  309. package/dist/cjs/WebApiBase.js +442 -0
  310. package/dist/cjs/WebApiBase.js.map +1 -0
  311. package/dist/cjs/WebhookAgent.d.ts +102 -0
  312. package/dist/cjs/WebhookAgent.d.ts.map +1 -0
  313. package/dist/cjs/WebhookAgent.js +245 -0
  314. package/dist/cjs/WebhookAgent.js.map +1 -0
  315. package/dist/cjs/WorkflowAgent.d.ts +250 -0
  316. package/dist/cjs/WorkflowAgent.d.ts.map +1 -0
  317. package/dist/cjs/WorkflowAgent.js +763 -0
  318. package/dist/cjs/WorkflowAgent.js.map +1 -0
  319. package/dist/cjs/package.json +1 -0
  320. package/dist/esm/AIAgent.d.ts +265 -0
  321. package/dist/esm/AIAgent.d.ts.map +1 -0
  322. package/dist/esm/AIAgent.js +530 -0
  323. package/dist/esm/AIAgent.js.map +1 -0
  324. package/dist/esm/AppointmentAgent.d.ts +1539 -0
  325. package/dist/esm/AppointmentAgent.d.ts.map +1 -0
  326. package/dist/esm/AppointmentAgent.js +3358 -0
  327. package/dist/esm/AppointmentAgent.js.map +1 -0
  328. package/dist/esm/AppointmentRestApi.d.ts +46 -0
  329. package/dist/esm/AppointmentRestApi.d.ts.map +1 -0
  330. package/dist/esm/AppointmentRestApi.js +163 -0
  331. package/dist/esm/AppointmentRestApi.js.map +1 -0
  332. package/dist/esm/ArchiveAgent.d.ts +582 -0
  333. package/dist/esm/ArchiveAgent.d.ts.map +1 -0
  334. package/dist/esm/ArchiveAgent.js +1130 -0
  335. package/dist/esm/ArchiveAgent.js.map +1 -0
  336. package/dist/esm/AssociateAgent.d.ts +109 -0
  337. package/dist/esm/AssociateAgent.d.ts.map +1 -0
  338. package/dist/esm/AssociateAgent.js +252 -0
  339. package/dist/esm/AssociateAgent.js.map +1 -0
  340. package/dist/esm/AudienceAgent.d.ts +359 -0
  341. package/dist/esm/AudienceAgent.d.ts.map +1 -0
  342. package/dist/esm/AudienceAgent.js +883 -0
  343. package/dist/esm/AudienceAgent.js.map +1 -0
  344. package/dist/esm/AxiosCacheHandler.d.ts +20 -0
  345. package/dist/esm/AxiosCacheHandler.d.ts.map +1 -0
  346. package/dist/esm/AxiosCacheHandler.js +64 -0
  347. package/dist/esm/AxiosCacheHandler.js.map +1 -0
  348. package/dist/esm/BLOBAgent.d.ts +538 -0
  349. package/dist/esm/BLOBAgent.d.ts.map +1 -0
  350. package/dist/esm/BLOBAgent.js +1359 -0
  351. package/dist/esm/BLOBAgent.js.map +1 -0
  352. package/dist/esm/Base64.d.ts +4 -0
  353. package/dist/esm/Base64.d.ts.map +1 -0
  354. package/dist/esm/Base64.js +228 -0
  355. package/dist/esm/Base64.js.map +1 -0
  356. package/dist/esm/BatchAgent.d.ts +252 -0
  357. package/dist/esm/BatchAgent.d.ts.map +1 -0
  358. package/dist/esm/BatchAgent.js +517 -0
  359. package/dist/esm/BatchAgent.js.map +1 -0
  360. package/dist/esm/BulkUpdateAgent.d.ts +144 -0
  361. package/dist/esm/BulkUpdateAgent.d.ts.map +1 -0
  362. package/dist/esm/BulkUpdateAgent.js +283 -0
  363. package/dist/esm/BulkUpdateAgent.js.map +1 -0
  364. package/dist/esm/CRMScriptAgent.d.ts +330 -0
  365. package/dist/esm/CRMScriptAgent.d.ts.map +1 -0
  366. package/dist/esm/CRMScriptAgent.js +794 -0
  367. package/dist/esm/CRMScriptAgent.js.map +1 -0
  368. package/dist/esm/Carriers.d.ts +36976 -0
  369. package/dist/esm/Carriers.d.ts.map +1 -0
  370. package/dist/esm/Carriers.js +6 -0
  371. package/dist/esm/Carriers.js.map +1 -0
  372. package/dist/esm/ChatAgent.d.ts +366 -0
  373. package/dist/esm/ChatAgent.d.ts.map +1 -0
  374. package/dist/esm/ChatAgent.js +914 -0
  375. package/dist/esm/ChatAgent.js.map +1 -0
  376. package/dist/esm/ConfigurationAgent.d.ts +534 -0
  377. package/dist/esm/ConfigurationAgent.d.ts.map +1 -0
  378. package/dist/esm/ConfigurationAgent.js +1424 -0
  379. package/dist/esm/ConfigurationAgent.js.map +1 -0
  380. package/dist/esm/ContactAgent.d.ts +415 -0
  381. package/dist/esm/ContactAgent.d.ts.map +1 -0
  382. package/dist/esm/ContactAgent.js +1000 -0
  383. package/dist/esm/ContactAgent.js.map +1 -0
  384. package/dist/esm/ContactRestApi.d.ts +46 -0
  385. package/dist/esm/ContactRestApi.d.ts.map +1 -0
  386. package/dist/esm/ContactRestApi.js +163 -0
  387. package/dist/esm/ContactRestApi.js.map +1 -0
  388. package/dist/esm/Converters.d.ts +1359 -0
  389. package/dist/esm/Converters.d.ts.map +1 -0
  390. package/dist/esm/Converters.js +17609 -0
  391. package/dist/esm/Converters.js.map +1 -0
  392. package/dist/esm/CustomerServiceAgent.d.ts +447 -0
  393. package/dist/esm/CustomerServiceAgent.d.ts.map +1 -0
  394. package/dist/esm/CustomerServiceAgent.js +1118 -0
  395. package/dist/esm/CustomerServiceAgent.js.map +1 -0
  396. package/dist/esm/DashAgent.d.ts +370 -0
  397. package/dist/esm/DashAgent.d.ts.map +1 -0
  398. package/dist/esm/DashAgent.js +1023 -0
  399. package/dist/esm/DashAgent.js.map +1 -0
  400. package/dist/esm/DashboardAgent.d.ts +163 -0
  401. package/dist/esm/DashboardAgent.d.ts.map +1 -0
  402. package/dist/esm/DashboardAgent.js +431 -0
  403. package/dist/esm/DashboardAgent.js.map +1 -0
  404. package/dist/esm/DatabaseAgent.d.ts +35 -0
  405. package/dist/esm/DatabaseAgent.d.ts.map +1 -0
  406. package/dist/esm/DatabaseAgent.js +65 -0
  407. package/dist/esm/DatabaseAgent.js.map +1 -0
  408. package/dist/esm/DatabaseTableAgent.d.ts +155 -0
  409. package/dist/esm/DatabaseTableAgent.d.ts.map +1 -0
  410. package/dist/esm/DatabaseTableAgent.js +294 -0
  411. package/dist/esm/DatabaseTableAgent.js.map +1 -0
  412. package/dist/esm/Day_js.d.ts +4 -0
  413. package/dist/esm/Day_js.d.ts.map +1 -0
  414. package/dist/esm/Day_js.js +38 -0
  415. package/dist/esm/Day_js.js.map +1 -0
  416. package/dist/esm/DiagnosticsAgent.d.ts +200 -0
  417. package/dist/esm/DiagnosticsAgent.d.ts.map +1 -0
  418. package/dist/esm/DiagnosticsAgent.js +475 -0
  419. package/dist/esm/DiagnosticsAgent.js.map +1 -0
  420. package/dist/esm/DocumentAgent.d.ts +1345 -0
  421. package/dist/esm/DocumentAgent.d.ts.map +1 -0
  422. package/dist/esm/DocumentAgent.js +3053 -0
  423. package/dist/esm/DocumentAgent.js.map +1 -0
  424. package/dist/esm/DocumentMigrationAgent.d.ts +145 -0
  425. package/dist/esm/DocumentMigrationAgent.d.ts.map +1 -0
  426. package/dist/esm/DocumentMigrationAgent.js +292 -0
  427. package/dist/esm/DocumentMigrationAgent.js.map +1 -0
  428. package/dist/esm/DocumentRestApi.d.ts +46 -0
  429. package/dist/esm/DocumentRestApi.d.ts.map +1 -0
  430. package/dist/esm/DocumentRestApi.js +163 -0
  431. package/dist/esm/DocumentRestApi.js.map +1 -0
  432. package/dist/esm/EMailAgent.d.ts +1417 -0
  433. package/dist/esm/EMailAgent.d.ts.map +1 -0
  434. package/dist/esm/EMailAgent.js +3197 -0
  435. package/dist/esm/EMailAgent.js.map +1 -0
  436. package/dist/esm/Enums.d.ts +6083 -0
  437. package/dist/esm/Enums.d.ts.map +1 -0
  438. package/dist/esm/Enums.js +6264 -0
  439. package/dist/esm/Enums.js.map +1 -0
  440. package/dist/esm/ErpSyncAgent.d.ts +725 -0
  441. package/dist/esm/ErpSyncAgent.d.ts.map +1 -0
  442. package/dist/esm/ErpSyncAgent.js +1596 -0
  443. package/dist/esm/ErpSyncAgent.js.map +1 -0
  444. package/dist/esm/FavouriteAgent.d.ts +208 -0
  445. package/dist/esm/FavouriteAgent.d.ts.map +1 -0
  446. package/dist/esm/FavouriteAgent.js +402 -0
  447. package/dist/esm/FavouriteAgent.js.map +1 -0
  448. package/dist/esm/FindAgent.d.ts +688 -0
  449. package/dist/esm/FindAgent.d.ts.map +1 -0
  450. package/dist/esm/FindAgent.js +1332 -0
  451. package/dist/esm/FindAgent.js.map +1 -0
  452. package/dist/esm/ForeignSystemAgent.d.ts +478 -0
  453. package/dist/esm/ForeignSystemAgent.d.ts.map +1 -0
  454. package/dist/esm/ForeignSystemAgent.js +1017 -0
  455. package/dist/esm/ForeignSystemAgent.js.map +1 -0
  456. package/dist/esm/FreeTextAgent.d.ts +172 -0
  457. package/dist/esm/FreeTextAgent.d.ts.map +1 -0
  458. package/dist/esm/FreeTextAgent.js +363 -0
  459. package/dist/esm/FreeTextAgent.js.map +1 -0
  460. package/dist/esm/ImportAgent.d.ts +92 -0
  461. package/dist/esm/ImportAgent.d.ts.map +1 -0
  462. package/dist/esm/ImportAgent.js +159 -0
  463. package/dist/esm/ImportAgent.js.map +1 -0
  464. package/dist/esm/LicenseAgent.d.ts +298 -0
  465. package/dist/esm/LicenseAgent.d.ts.map +1 -0
  466. package/dist/esm/LicenseAgent.js +634 -0
  467. package/dist/esm/LicenseAgent.js.map +1 -0
  468. package/dist/esm/ListAgent.d.ts +2423 -0
  469. package/dist/esm/ListAgent.d.ts.map +1 -0
  470. package/dist/esm/ListAgent.js +7808 -0
  471. package/dist/esm/ListAgent.js.map +1 -0
  472. package/dist/esm/MDOAgent.d.ts +214 -0
  473. package/dist/esm/MDOAgent.d.ts.map +1 -0
  474. package/dist/esm/MDOAgent.js +425 -0
  475. package/dist/esm/MDOAgent.js.map +1 -0
  476. package/dist/esm/MarketingAgent.d.ts +170 -0
  477. package/dist/esm/MarketingAgent.d.ts.map +1 -0
  478. package/dist/esm/MarketingAgent.js +565 -0
  479. package/dist/esm/MarketingAgent.js.map +1 -0
  480. package/dist/esm/MessagingAgent.d.ts +111 -0
  481. package/dist/esm/MessagingAgent.d.ts.map +1 -0
  482. package/dist/esm/MessagingAgent.js +212 -0
  483. package/dist/esm/MessagingAgent.js.map +1 -0
  484. package/dist/esm/NavigatorAgent.d.ts +40 -0
  485. package/dist/esm/NavigatorAgent.d.ts.map +1 -0
  486. package/dist/esm/NavigatorAgent.js +94 -0
  487. package/dist/esm/NavigatorAgent.js.map +1 -0
  488. package/dist/esm/NumberAllocationAgent.d.ts +72 -0
  489. package/dist/esm/NumberAllocationAgent.d.ts.map +1 -0
  490. package/dist/esm/NumberAllocationAgent.js +194 -0
  491. package/dist/esm/NumberAllocationAgent.js.map +1 -0
  492. package/dist/esm/PersonAgent.d.ts +774 -0
  493. package/dist/esm/PersonAgent.d.ts.map +1 -0
  494. package/dist/esm/PersonAgent.js +1809 -0
  495. package/dist/esm/PersonAgent.js.map +1 -0
  496. package/dist/esm/PersonRestApi.d.ts +46 -0
  497. package/dist/esm/PersonRestApi.d.ts.map +1 -0
  498. package/dist/esm/PersonRestApi.js +163 -0
  499. package/dist/esm/PersonRestApi.js.map +1 -0
  500. package/dist/esm/PhoneListAgent.d.ts +126 -0
  501. package/dist/esm/PhoneListAgent.d.ts.map +1 -0
  502. package/dist/esm/PhoneListAgent.js +264 -0
  503. package/dist/esm/PhoneListAgent.js.map +1 -0
  504. package/dist/esm/PocketAgent.d.ts +218 -0
  505. package/dist/esm/PocketAgent.d.ts.map +1 -0
  506. package/dist/esm/PocketAgent.js +446 -0
  507. package/dist/esm/PocketAgent.js.map +1 -0
  508. package/dist/esm/PreferenceAgent.d.ts +497 -0
  509. package/dist/esm/PreferenceAgent.d.ts.map +1 -0
  510. package/dist/esm/PreferenceAgent.js +1189 -0
  511. package/dist/esm/PreferenceAgent.js.map +1 -0
  512. package/dist/esm/PreviewsAgent.d.ts +36 -0
  513. package/dist/esm/PreviewsAgent.d.ts.map +1 -0
  514. package/dist/esm/PreviewsAgent.js +49 -0
  515. package/dist/esm/PreviewsAgent.js.map +1 -0
  516. package/dist/esm/ProjectAgent.d.ts +558 -0
  517. package/dist/esm/ProjectAgent.d.ts.map +1 -0
  518. package/dist/esm/ProjectAgent.js +1477 -0
  519. package/dist/esm/ProjectAgent.js.map +1 -0
  520. package/dist/esm/ProjectRestApi.d.ts +46 -0
  521. package/dist/esm/ProjectRestApi.d.ts.map +1 -0
  522. package/dist/esm/ProjectRestApi.js +163 -0
  523. package/dist/esm/ProjectRestApi.js.map +1 -0
  524. package/dist/esm/QuoteAgent.d.ts +1415 -0
  525. package/dist/esm/QuoteAgent.d.ts.map +1 -0
  526. package/dist/esm/QuoteAgent.js +3219 -0
  527. package/dist/esm/QuoteAgent.js.map +1 -0
  528. package/dist/esm/RelationAgent.d.ts +61 -0
  529. package/dist/esm/RelationAgent.d.ts.map +1 -0
  530. package/dist/esm/RelationAgent.js +127 -0
  531. package/dist/esm/RelationAgent.js.map +1 -0
  532. package/dist/esm/ReplicationAgent.d.ts +77 -0
  533. package/dist/esm/ReplicationAgent.d.ts.map +1 -0
  534. package/dist/esm/ReplicationAgent.js +218 -0
  535. package/dist/esm/ReplicationAgent.js.map +1 -0
  536. package/dist/esm/ReportAgent.d.ts +144 -0
  537. package/dist/esm/ReportAgent.d.ts.map +1 -0
  538. package/dist/esm/ReportAgent.js +375 -0
  539. package/dist/esm/ReportAgent.js.map +1 -0
  540. package/dist/esm/ResourceAgent.d.ts +105 -0
  541. package/dist/esm/ResourceAgent.d.ts.map +1 -0
  542. package/dist/esm/ResourceAgent.js +191 -0
  543. package/dist/esm/ResourceAgent.js.map +1 -0
  544. package/dist/esm/SaintAgent.d.ts +157 -0
  545. package/dist/esm/SaintAgent.d.ts.map +1 -0
  546. package/dist/esm/SaintAgent.js +397 -0
  547. package/dist/esm/SaintAgent.js.map +1 -0
  548. package/dist/esm/SaleAgent.d.ts +477 -0
  549. package/dist/esm/SaleAgent.d.ts.map +1 -0
  550. package/dist/esm/SaleAgent.js +1177 -0
  551. package/dist/esm/SaleAgent.js.map +1 -0
  552. package/dist/esm/SaleRestApi.d.ts +46 -0
  553. package/dist/esm/SaleRestApi.d.ts.map +1 -0
  554. package/dist/esm/SaleRestApi.js +163 -0
  555. package/dist/esm/SaleRestApi.js.map +1 -0
  556. package/dist/esm/SelectionAgent.d.ts +814 -0
  557. package/dist/esm/SelectionAgent.d.ts.map +1 -0
  558. package/dist/esm/SelectionAgent.js +1790 -0
  559. package/dist/esm/SelectionAgent.js.map +1 -0
  560. package/dist/esm/SentryAgent.d.ts +113 -0
  561. package/dist/esm/SentryAgent.d.ts.map +1 -0
  562. package/dist/esm/SentryAgent.js +233 -0
  563. package/dist/esm/SentryAgent.js.map +1 -0
  564. package/dist/esm/SoApiConstants.d.ts +8 -0
  565. package/dist/esm/SoApiConstants.d.ts.map +1 -0
  566. package/dist/esm/SoApiConstants.js +9 -0
  567. package/dist/esm/SoApiConstants.js.map +1 -0
  568. package/dist/esm/TargetsAgent.d.ts +289 -0
  569. package/dist/esm/TargetsAgent.d.ts.map +1 -0
  570. package/dist/esm/TargetsAgent.js +723 -0
  571. package/dist/esm/TargetsAgent.js.map +1 -0
  572. package/dist/esm/TicketAgent.d.ts +802 -0
  573. package/dist/esm/TicketAgent.d.ts.map +1 -0
  574. package/dist/esm/TicketAgent.js +1860 -0
  575. package/dist/esm/TicketAgent.js.map +1 -0
  576. package/dist/esm/TimeZoneAgent.d.ts +139 -0
  577. package/dist/esm/TimeZoneAgent.d.ts.map +1 -0
  578. package/dist/esm/TimeZoneAgent.js +343 -0
  579. package/dist/esm/TimeZoneAgent.js.map +1 -0
  580. package/dist/esm/TooltipsAgent.d.ts +36 -0
  581. package/dist/esm/TooltipsAgent.d.ts.map +1 -0
  582. package/dist/esm/TooltipsAgent.js +49 -0
  583. package/dist/esm/TooltipsAgent.js.map +1 -0
  584. package/dist/esm/UserAgent.d.ts +1260 -0
  585. package/dist/esm/UserAgent.d.ts.map +1 -0
  586. package/dist/esm/UserAgent.js +2973 -0
  587. package/dist/esm/UserAgent.js.map +1 -0
  588. package/dist/esm/UserDefinedFieldInfoAgent.d.ts +474 -0
  589. package/dist/esm/UserDefinedFieldInfoAgent.d.ts.map +1 -0
  590. package/dist/esm/UserDefinedFieldInfoAgent.js +1062 -0
  591. package/dist/esm/UserDefinedFieldInfoAgent.js.map +1 -0
  592. package/dist/esm/ViewStateAgent.d.ts +230 -0
  593. package/dist/esm/ViewStateAgent.d.ts.map +1 -0
  594. package/dist/esm/ViewStateAgent.js +513 -0
  595. package/dist/esm/ViewStateAgent.js.map +1 -0
  596. package/dist/esm/WebApi.d.ts +427 -0
  597. package/dist/esm/WebApi.d.ts.map +1 -0
  598. package/dist/esm/WebApi.js +649 -0
  599. package/dist/esm/WebApi.js.map +1 -0
  600. package/dist/esm/WebApiBase.d.ts +152 -0
  601. package/dist/esm/WebApiBase.d.ts.map +1 -0
  602. package/dist/esm/WebApiBase.js +437 -0
  603. package/dist/esm/WebApiBase.js.map +1 -0
  604. package/dist/esm/WebhookAgent.d.ts +102 -0
  605. package/dist/esm/WebhookAgent.d.ts.map +1 -0
  606. package/dist/esm/WebhookAgent.js +240 -0
  607. package/dist/esm/WebhookAgent.js.map +1 -0
  608. package/dist/esm/WorkflowAgent.d.ts +250 -0
  609. package/dist/esm/WorkflowAgent.d.ts.map +1 -0
  610. package/dist/esm/WorkflowAgent.js +758 -0
  611. package/dist/esm/WorkflowAgent.js.map +1 -0
  612. package/dist/esm/package.json +1 -0
  613. package/examples-js/hello.js +12 -0
  614. package/examples-ts/hello.ts +8 -0
  615. package/package.json +89 -0
  616. package/scripts/setVersion.js +46 -0
  617. package/src/AIAgent.ts +928 -0
  618. package/src/AppointmentAgent.ts +5573 -0
  619. package/src/AppointmentRestApi.ts +225 -0
  620. package/src/ArchiveAgent.ts +1950 -0
  621. package/src/AssociateAgent.ts +422 -0
  622. package/src/AudienceAgent.ts +1430 -0
  623. package/src/AxiosCacheHandler.ts +74 -0
  624. package/src/BLOBAgent.ts +2214 -0
  625. package/src/Base64.ts +285 -0
  626. package/src/BatchAgent.ts +910 -0
  627. package/src/BulkUpdateAgent.ts +504 -0
  628. package/src/CRMScriptAgent.ts +1276 -0
  629. package/src/Carriers.ts +49791 -0
  630. package/src/ChatAgent.ts +1422 -0
  631. package/src/ConfigurationAgent.ts +2138 -0
  632. package/src/ContactAgent.ts +1586 -0
  633. package/src/ContactRestApi.ts +235 -0
  634. package/src/Converters.ts +21633 -0
  635. package/src/CustomerServiceAgent.ts +1734 -0
  636. package/src/DashAgent.ts +1504 -0
  637. package/src/DashboardAgent.ts +658 -0
  638. package/src/DatabaseAgent.ts +120 -0
  639. package/src/DatabaseTableAgent.ts +534 -0
  640. package/src/Day_js.ts +41 -0
  641. package/src/DiagnosticsAgent.ts +744 -0
  642. package/src/DocumentAgent.ts +5018 -0
  643. package/src/DocumentMigrationAgent.ts +494 -0
  644. package/src/DocumentRestApi.ts +259 -0
  645. package/src/EMailAgent.ts +5210 -0
  646. package/src/Enums.ts +6438 -0
  647. package/src/ErpSyncAgent.ts +2658 -0
  648. package/src/FavouriteAgent.ts +720 -0
  649. package/src/FindAgent.ts +2330 -0
  650. package/src/ForeignSystemAgent.ts +1710 -0
  651. package/src/FreeTextAgent.ts +626 -0
  652. package/src/ImportAgent.ts +304 -0
  653. package/src/LicenseAgent.ts +1088 -0
  654. package/src/ListAgent.ts +10894 -0
  655. package/src/MDOAgent.ts +748 -0
  656. package/src/MarketingAgent.ts +776 -0
  657. package/src/MessagingAgent.ts +384 -0
  658. package/src/NavigatorAgent.ts +164 -0
  659. package/src/NumberAllocationAgent.ts +296 -0
  660. package/src/PersonAgent.ts +2919 -0
  661. package/src/PersonRestApi.ts +239 -0
  662. package/src/PhoneListAgent.ts +458 -0
  663. package/src/PocketAgent.ts +780 -0
  664. package/src/PreferenceAgent.ts +1900 -0
  665. package/src/PreviewsAgent.ts +116 -0
  666. package/src/ProjectAgent.ts +2275 -0
  667. package/src/ProjectRestApi.ts +239 -0
  668. package/src/QuoteAgent.ts +5294 -0
  669. package/src/RelationAgent.ts +220 -0
  670. package/src/ReplicationAgent.ts +325 -0
  671. package/src/ReportAgent.ts +575 -0
  672. package/src/ResourceAgent.ts +358 -0
  673. package/src/SaintAgent.ts +601 -0
  674. package/src/SaleAgent.ts +1862 -0
  675. package/src/SaleRestApi.ts +233 -0
  676. package/src/SelectionAgent.ts +2980 -0
  677. package/src/SentryAgent.ts +406 -0
  678. package/src/SoApiConstants.ts +8 -0
  679. package/src/TargetsAgent.ts +1104 -0
  680. package/src/TicketAgent.ts +3032 -0
  681. package/src/TimeZoneAgent.ts +528 -0
  682. package/src/TooltipsAgent.ts +116 -0
  683. package/src/UserAgent.ts +4798 -0
  684. package/src/UserDefinedFieldInfoAgent.ts +1764 -0
  685. package/src/ViewStateAgent.ts +858 -0
  686. package/src/WebApi.ts +908 -0
  687. package/src/WebApiBase.ts +562 -0
  688. package/src/WebhookAgent.ts +388 -0
  689. package/src/WorkflowAgent.ts +1054 -0
  690. package/tsconfig.esm.json +8 -0
  691. package/tsconfig.jest.json +12 -0
  692. package/tsconfig.json +35 -0
@@ -0,0 +1,2138 @@
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/ConfigurationAgent.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
+ * User interface configuration - XMLs and other elements such as inter-client URLs
28
+ */
29
+ export interface IConfigurationAgent {
30
+ createDefaultConfigurableScreenDeltaAsync(): Promise< carriers.ConfigurableScreenDelta >;
31
+ saveConfigurableScreenDeltaAsync(entity: carriers.ConfigurableScreenDelta) : Promise< carriers.ConfigurableScreenDelta >;
32
+ deleteConfigurableScreenDeltaAsync(ConfigurableScreenDeltaId: number) : Promise<void>;
33
+ createDefaultDiaryViewEntityAsync(): Promise< carriers.DiaryViewEntity >;
34
+ saveDiaryViewEntityAsync(entity: carriers.DiaryViewEntity) : Promise< carriers.DiaryViewEntity >;
35
+ deleteDiaryViewEntityAsync(DiaryViewEntityId: number) : Promise<void>;
36
+ createDefaultSystemEventEntityAsync(): Promise< carriers.SystemEventEntity >;
37
+ saveSystemEventEntityAsync(entity: carriers.SystemEventEntity) : Promise< carriers.SystemEventEntity >;
38
+ deleteSystemEventEntityAsync(SystemEventEntityId: number) : Promise<void>;
39
+ getConfigurableScreenDeltaAsync(configurableScreenDeltaId: number) : Promise< carriers.ConfigurableScreenDelta >;
40
+ getScreenConfigurationDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
41
+ getScreenConfigurationDeltaAsync(request: carriers.Configuration_GetScreenConfigurationDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
42
+ getScreenConfigurationDeltaAsync(deltaType: enums.DeltaType, deltaState: enums.DeltaState, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
43
+ getConfigurableScreenDeltasByDeltaAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
44
+ getConfigurableScreenDeltasByDeltaAsync(configurableScreenDelta: carriers.ConfigurableScreenDelta, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
45
+ getConfigurableScreenDeltasByQueryAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
46
+ getConfigurableScreenDeltasByQueryAsync(deltaQuery: carriers.DeltaQuery, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
47
+ rebuildUdefDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
48
+ rebuildWebpanelDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
49
+ saveAndPublishAsync(request: carriers.Configuration_SaveAndPublishRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta >;
50
+ saveAndPublishAsync(configurableScreenDelta: carriers.ConfigurableScreenDelta, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta >;
51
+ setAppliesToKeyAsync(request: carriers.Configuration_SetAppliesToKeyRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
52
+ setAppliesToKeyAsync(recipeId: string, appliesToKey: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
53
+ getRecipeAppliesToMappingsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
54
+ getApplicationConfigurationAsync(request: carriers.Configuration_GetApplicationConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
55
+ getApplicationConfigurationAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
56
+ getPageConfigurationAsync(request: carriers.Configuration_GetPageConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
57
+ getPageConfigurationAsync(application: string, instance: string, page: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
58
+ getObjectMappingAsync(request: carriers.Configuration_GetObjectMappingRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
59
+ getObjectMappingAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
60
+ getFilterListAsync(request: carriers.Configuration_GetFilterListRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
61
+ getFilterListAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
62
+ clearConfigurationCacheAsync(request: carriers.Configuration_ClearConfigurationCacheRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
63
+ clearConfigurationCacheAsync(application: string, instance: string, forAllAssociates: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
64
+ getAnyConfigurationAsync(request: carriers.Configuration_GetAnyConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
65
+ getAnyConfigurationAsync(application: string, instance: string, item: string, type: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
66
+ getEMarketingUrlAsync(request: carriers.Configuration_GetEMarketingUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
67
+ getEMarketingUrlAsync(language: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
68
+ getCsProgramUrlAsync(request: carriers.Configuration_GetCsProgramUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
69
+ getCsProgramUrlAsync(language: string, programName: string, action: string, extraParameters: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
70
+ getCSAuthUrlAsync(request: carriers.Configuration_GetCSAuthUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
71
+ getCSAuthUrlAsync(language: string, programName: string, action: string, extraParameters: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
72
+ getCSRegistryValueAsync(request: carriers.Configuration_GetCSRegistryValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
73
+ getCSRegistryValueAsync(entry: number, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
74
+ getCSWwwFolderAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
75
+ getRefreshedPageConfigurationAsync(request: carriers.Configuration_GetRefreshedPageConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
76
+ getRefreshedPageConfigurationAsync(application: string, instance: string, page: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
77
+ getWwwUrlAsync(request: carriers.Configuration_GetWwwUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
78
+ getWwwUrlAsync(client: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
79
+ getHelpDispatcherUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
80
+ getWwwUrlForSMWebAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
81
+ getCsCgiUrlInternalAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
82
+ getCRMUrlAsync(request: carriers.Configuration_GetCRMUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
83
+ getCRMUrlAsync(soProtocol: string, currents: string, frameless: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
84
+ getEmailNumberOfDaysAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >;
85
+ getCustomerUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
86
+ getSpfDomainAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
87
+ getDiaryViewEntityAsync(diaryViewEntityId: number) : Promise< carriers.DiaryViewEntity >;
88
+ getSystemEventEntityAsync(systemEventEntityId: number) : Promise< carriers.SystemEventEntity >;
89
+ existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
90
+ existsSystemEventAsync(key: string, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
91
+ getWindowPosSizeAsync(windowPosSizeId: number) : Promise< carriers.WindowPosSize >;
92
+ saveWindowPosSizeAsync(request: carriers.Configuration_SaveWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize >;
93
+ saveWindowPosSizeAsync(windowPosSize: carriers.WindowPosSize, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize >;
94
+ deleteWindowPosSizeAsync(request: carriers.Configuration_DeleteWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
95
+ deleteWindowPosSizeAsync(windowPosSizeId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
96
+ getWindowPosSizeListAsync(windowPosSizeIds: number[]) : Promise< carriers.WindowPosSize[] >;
97
+ getMyWindowPosSizesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
98
+ getWindowPosSizesOnPersonIdAsync(request: carriers.Configuration_GetWindowPosSizesOnPersonIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
99
+ getWindowPosSizesOnPersonIdAsync(personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
100
+ getWindowPosSizesOnAssociateIdAsync(request: carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
101
+ getWindowPosSizesOnAssociateIdAsync(associateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
102
+ saveWindowPosSizesAsync(request: carriers.Configuration_SaveWindowPosSizesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
103
+ saveWindowPosSizesAsync(windowPosSizes: carriers.WindowPosSize[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
104
+ } // interface IConfigurationAgent
105
+
106
+
107
+
108
+
109
+ /**
110
+ * User interface configuration - XMLs and other elements such as inter-client URLs
111
+ */
112
+ export class ConfigurationAgent extends base.WebApiBase implements IConfigurationAgent {
113
+ constructor(baseUrl?: string, languageCode?:string, cultureCode?: string);
114
+ constructor(baseUrl?: string, resourceParsing?: base.ResourceParsing);
115
+ constructor(baseUrl: string, resourceManager:any);
116
+ constructor(baseUrl: string, config:AxiosRequestConfig, resourceManager:any);
117
+ constructor(baseUrl: string, config:AxiosRequestConfig, resourceParsing?: base.ResourceParsing);
118
+ constructor(baseUrl: string, config:AxiosRequestConfig, languageCode?:string, cultureCode?: string);
119
+ constructor(options: base.WebApiOptions);
120
+
121
+ constructor(baseUrlOrOptions: string|base.WebApiOptions|undefined,
122
+ langOrconfigOrRM?: string|base.ResourceParsing|AxiosRequestConfig|any,
123
+ langOrResourceOrRM?:string|base.ResourceParsing|any,
124
+ cultureCode?: string,
125
+ ) {
126
+ const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
127
+ options.basePath = "v1/Agents/Configuration/";
128
+ super(options);
129
+ }
130
+
131
+
132
+
133
+ /**
134
+ * Set default values into a new ConfigurableScreenDelta.
135
+ * NetServer calculates default values on the entity, which is required when creating/storing a new instance
136
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
137
+ * @returns A blank entity.
138
+ */
139
+ public async createDefaultConfigurableScreenDeltaAsync(options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
140
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
141
+ base.WebApiBase.SetPending(options);
142
+ return new Promise< carriers.ConfigurableScreenDelta >(async (resolve, reject) => {
143
+ try {
144
+ const response = await this._axios.post("CreateDefaultConfigurableScreenDelta", null, config);
145
+ base.WebApiBase.SetCompleted(options);
146
+ const res : carriers.ConfigurableScreenDelta = converters.Create_ConfigurableScreenDelta_From( response.data );
147
+ resolve(res);
148
+ }
149
+ catch( err ) {
150
+ base.WebApiBase.HandleError(options, config, err);
151
+ reject(err);
152
+ }
153
+ });
154
+ }
155
+ /*
156
+ * Replace the existing ConfigurableScreenDelta or creates a new ConfigurableScreenDelta if the id parameter is empty
157
+ * @param entity - The ConfigurableScreenDelta to be saved.
158
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
159
+ * @returns New or updated ConfigurableScreenDelta
160
+ */
161
+ public async saveConfigurableScreenDeltaAsync(entity: carriers.ConfigurableScreenDelta, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
162
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
163
+ base.WebApiBase.SetPending(options);
164
+ return new Promise< carriers.ConfigurableScreenDelta >(async (resolve, reject) => {
165
+ try {
166
+ const response = await this._axios.post("SaveConfigurableScreenDelta", entity, config);
167
+ base.WebApiBase.SetCompleted(options);
168
+ const res : carriers.ConfigurableScreenDelta = converters.Create_ConfigurableScreenDelta_From( response.data );
169
+ resolve(res);
170
+ }
171
+ catch( err ) {
172
+ base.WebApiBase.HandleError(options, config, err);
173
+ reject(err);
174
+ }
175
+ });
176
+ }
177
+
178
+ /*
179
+ * Deletes the ConfigurableScreenDelta
180
+ * @param ConfigurableScreenDeltaId - The id of the ConfigurableScreenDelta to be deleted.
181
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
182
+ */
183
+ public async deleteConfigurableScreenDeltaAsync(ConfigurableScreenDeltaId: number, options?:base.WebApiRequestOptions) : Promise< void > {
184
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
185
+ base.WebApiBase.SetPending(options);
186
+ return new Promise< void >(async (resolve, reject) => {
187
+ try {
188
+ const response = await this._axios.post("DeleteConfigurableScreenDelta?ConfigurableScreenDeltaId=" + ConfigurableScreenDeltaId, null, config );
189
+ base.WebApiBase.SetCompleted(options);
190
+ const res = response.data;
191
+ resolve(res);
192
+ }
193
+ catch( err ) {
194
+ base.WebApiBase.HandleError(options, config, err);
195
+ reject(err);
196
+ }
197
+ });
198
+ }
199
+
200
+ /**
201
+ * Set default values into a new DiaryViewEntity.
202
+ * NetServer calculates default values on the entity, which is required when creating/storing a new instance
203
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
204
+ * @returns A blank entity.
205
+ */
206
+ public async createDefaultDiaryViewEntityAsync(options?:base.WebApiRequestOptions) : Promise< carriers.DiaryViewEntity > {
207
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
208
+ base.WebApiBase.SetPending(options);
209
+ return new Promise< carriers.DiaryViewEntity >(async (resolve, reject) => {
210
+ try {
211
+ const response = await this._axios.post("CreateDefaultDiaryViewEntity", null, config);
212
+ base.WebApiBase.SetCompleted(options);
213
+ const res : carriers.DiaryViewEntity = converters.Create_DiaryViewEntity_From( response.data );
214
+ resolve(res);
215
+ }
216
+ catch( err ) {
217
+ base.WebApiBase.HandleError(options, config, err);
218
+ reject(err);
219
+ }
220
+ });
221
+ }
222
+ /*
223
+ * Replace the existing DiaryViewEntity or creates a new DiaryViewEntity if the id parameter is empty
224
+ * @param entity - The DiaryViewEntity to be saved.
225
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
226
+ * @returns New or updated DiaryViewEntity
227
+ */
228
+ public async saveDiaryViewEntityAsync(entity: carriers.DiaryViewEntity, options?:base.WebApiRequestOptions) : Promise< carriers.DiaryViewEntity > {
229
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
230
+ base.WebApiBase.SetPending(options);
231
+ return new Promise< carriers.DiaryViewEntity >(async (resolve, reject) => {
232
+ try {
233
+ const response = await this._axios.post("SaveDiaryViewEntity", entity, config);
234
+ base.WebApiBase.SetCompleted(options);
235
+ const res : carriers.DiaryViewEntity = converters.Create_DiaryViewEntity_From( response.data );
236
+ resolve(res);
237
+ }
238
+ catch( err ) {
239
+ base.WebApiBase.HandleError(options, config, err);
240
+ reject(err);
241
+ }
242
+ });
243
+ }
244
+
245
+ /*
246
+ * Deletes the DiaryViewEntity
247
+ * @param DiaryViewEntityId - The id of the DiaryViewEntity to be deleted.
248
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
249
+ */
250
+ public async deleteDiaryViewEntityAsync(DiaryViewEntityId: number, options?:base.WebApiRequestOptions) : Promise< void > {
251
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
252
+ base.WebApiBase.SetPending(options);
253
+ return new Promise< void >(async (resolve, reject) => {
254
+ try {
255
+ const response = await this._axios.post("DeleteDiaryViewEntity?DiaryViewEntityId=" + DiaryViewEntityId, null, config );
256
+ base.WebApiBase.SetCompleted(options);
257
+ const res = response.data;
258
+ resolve(res);
259
+ }
260
+ catch( err ) {
261
+ base.WebApiBase.HandleError(options, config, err);
262
+ reject(err);
263
+ }
264
+ });
265
+ }
266
+
267
+ /**
268
+ * Set default values into a new SystemEventEntity.
269
+ * NetServer calculates default values on the entity, which is required when creating/storing a new instance
270
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
271
+ * @returns A blank entity.
272
+ */
273
+ public async createDefaultSystemEventEntityAsync(options?:base.WebApiRequestOptions) : Promise< carriers.SystemEventEntity > {
274
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
275
+ base.WebApiBase.SetPending(options);
276
+ return new Promise< carriers.SystemEventEntity >(async (resolve, reject) => {
277
+ try {
278
+ const response = await this._axios.post("CreateDefaultSystemEventEntity", null, config);
279
+ base.WebApiBase.SetCompleted(options);
280
+ const res : carriers.SystemEventEntity = converters.Create_SystemEventEntity_From( response.data );
281
+ resolve(res);
282
+ }
283
+ catch( err ) {
284
+ base.WebApiBase.HandleError(options, config, err);
285
+ reject(err);
286
+ }
287
+ });
288
+ }
289
+ /*
290
+ * Replace the existing SystemEventEntity or creates a new SystemEventEntity if the id parameter is empty
291
+ * @param entity - The SystemEventEntity to be saved.
292
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
293
+ * @returns New or updated SystemEventEntity
294
+ */
295
+ public async saveSystemEventEntityAsync(entity: carriers.SystemEventEntity, options?:base.WebApiRequestOptions) : Promise< carriers.SystemEventEntity > {
296
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
297
+ base.WebApiBase.SetPending(options);
298
+ return new Promise< carriers.SystemEventEntity >(async (resolve, reject) => {
299
+ try {
300
+ const response = await this._axios.post("SaveSystemEventEntity", entity, config);
301
+ base.WebApiBase.SetCompleted(options);
302
+ const res : carriers.SystemEventEntity = converters.Create_SystemEventEntity_From( response.data );
303
+ resolve(res);
304
+ }
305
+ catch( err ) {
306
+ base.WebApiBase.HandleError(options, config, err);
307
+ reject(err);
308
+ }
309
+ });
310
+ }
311
+
312
+ /*
313
+ * Deletes the SystemEventEntity
314
+ * @param SystemEventEntityId - The id of the SystemEventEntity to be deleted.
315
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
316
+ */
317
+ public async deleteSystemEventEntityAsync(SystemEventEntityId: number, options?:base.WebApiRequestOptions) : Promise< void > {
318
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
319
+ base.WebApiBase.SetPending(options);
320
+ return new Promise< void >(async (resolve, reject) => {
321
+ try {
322
+ const response = await this._axios.post("DeleteSystemEventEntity?SystemEventEntityId=" + SystemEventEntityId, null, config );
323
+ base.WebApiBase.SetCompleted(options);
324
+ const res = response.data;
325
+ resolve(res);
326
+ }
327
+ catch( err ) {
328
+ base.WebApiBase.HandleError(options, config, err);
329
+ reject(err);
330
+ }
331
+ });
332
+ }
333
+ /*
334
+ * Gets a ConfigurableScreenDelta object.
335
+ * @param configurableScreenDeltaId - The primary key.
336
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
337
+ * @returns A single ConfigurableScreenDelta
338
+ */
339
+ public async getConfigurableScreenDeltaAsync(configurableScreenDeltaId: number, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
340
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
341
+ base.WebApiBase.SetPending(options);
342
+ return new Promise< carriers.ConfigurableScreenDelta >(async (resolve, reject) => {
343
+ try {
344
+ const response = await this._axios.post("GetConfigurableScreenDelta?configurableScreenDeltaId=" + configurableScreenDeltaId, null, config);
345
+ base.WebApiBase.SetCompleted(options);
346
+ const res = converters.Create_ConfigurableScreenDelta_From( response.data );
347
+ resolve(res);
348
+ }
349
+ catch( err ) {
350
+ base.WebApiBase.HandleError(options, config, err);
351
+ reject(err);
352
+ }
353
+ });
354
+ }
355
+
356
+
357
+ private async _getScreenConfigurationDeltasAsync( options?:base.WebApiRequestOptions) : Promise< string > {
358
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
359
+ base.WebApiBase.SetPending(options);
360
+ return new Promise< string >(async (resolve, reject) => {
361
+ try {
362
+ config.baseURL = this._options.baseUrl;
363
+ const response = await this._axios.post("GetScreenConfigurationDeltas", undefined , config);
364
+ base.WebApiBase.SetCompleted(options);
365
+ const res : string = response.data as string;
366
+ resolve(res);
367
+ }
368
+ catch( err ) {
369
+ base.WebApiBase.HandleError(options, config, err);
370
+ reject(err);
371
+ }
372
+ });
373
+ }
374
+
375
+
376
+ /**
377
+ * This method will return a json with all deltas for screen
378
+ * @returns A string with all recipe deltas in json for logged in associate
379
+ */
380
+ public async getScreenConfigurationDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
381
+ {
382
+ return this._getScreenConfigurationDeltasAsync(webapi_options);
383
+ }
384
+
385
+
386
+ private async _getScreenConfigurationDeltaAsync(request: carriers.Configuration_GetScreenConfigurationDeltaRequest, options?:base.WebApiRequestOptions) : Promise< string > {
387
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
388
+ base.WebApiBase.SetPending(options);
389
+ return new Promise< string >(async (resolve, reject) => {
390
+ try {
391
+ config.baseURL = this._options.baseUrl;
392
+ const response = await this._axios.post("GetScreenConfigurationDelta", request , config);
393
+ base.WebApiBase.SetCompleted(options);
394
+ const res : string = response.data as string;
395
+ resolve(res);
396
+ }
397
+ catch( err ) {
398
+ base.WebApiBase.HandleError(options, config, err);
399
+ reject(err);
400
+ }
401
+ });
402
+ }
403
+
404
+
405
+
406
+ /**
407
+ * This method will return a json with all deltas for screen
408
+ * @param request - DeltaType, DeltaState
409
+ * @returns A string with recipe delta in json for logged in associate of given deltatype
410
+ */
411
+ public async getScreenConfigurationDeltaAsync(request: carriers.Configuration_GetScreenConfigurationDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
412
+
413
+ /**
414
+ * This method will return a json with all deltas for screen
415
+ * @param deltaType - The recipe in json for this DeltaType: System, WebPanel, CustomFields, Custom...
416
+ * @param deltaState - Draft or published or None
417
+ * @returns A string with recipe delta in json for logged in associate of given deltatype
418
+ */
419
+ public async getScreenConfigurationDeltaAsync(deltaType: enums.DeltaType, deltaState: enums.DeltaState, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
420
+
421
+ public async getScreenConfigurationDeltaAsync(deltaType:enums.DeltaType|carriers.Configuration_GetScreenConfigurationDeltaRequest, deltaState?:enums.DeltaState|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
422
+ let _request : carriers.Configuration_GetScreenConfigurationDeltaRequest = null;
423
+ let _options : base.WebApiRequestOptions = null;
424
+ const first : any = deltaType;
425
+ if( typeof( first ) === "object" && first && ( typeof(first.deltaType)!='undefined' || typeof(first.deltaState)!='undefined' ) )
426
+ {
427
+ _request = deltaType as carriers.Configuration_GetScreenConfigurationDeltaRequest;
428
+ _options = deltaState as base.WebApiRequestOptions;
429
+ }
430
+ else
431
+ {
432
+ _request = {
433
+ deltaType: deltaType as enums.DeltaType,
434
+ deltaState: deltaState as enums.DeltaState,
435
+ };
436
+ _options = webapi_options;
437
+ }
438
+ return this._getScreenConfigurationDeltaAsync( _request, _options );
439
+ }
440
+
441
+
442
+ private async _getConfigurableScreenDeltasByDeltaAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] > {
443
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
444
+ base.WebApiBase.SetPending(options);
445
+ return new Promise< carriers.ConfigurableScreenDelta[] >(async (resolve, reject) => {
446
+ try {
447
+ config.baseURL = this._options.baseUrl;
448
+ const response = await this._axios.post("GetConfigurableScreenDeltasByDelta", request , config);
449
+ base.WebApiBase.SetCompleted(options);
450
+ const res : carriers.ConfigurableScreenDelta[] = converters.Create_ConfigurableScreenDeltaArray_From( response.data );
451
+ resolve(res);
452
+ }
453
+ catch( err ) {
454
+ base.WebApiBase.HandleError(options, config, err);
455
+ reject(err);
456
+ }
457
+ });
458
+ }
459
+
460
+
461
+
462
+ /**
463
+ * This method will return a configurablescreen delta matching the properties received from the incomming delta
464
+ * @param request - ConfigurableScreenDelta
465
+ * @returns An array of deltas matching the values of the incomming parameter-delta
466
+ */
467
+ public async getConfigurableScreenDeltasByDeltaAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
468
+
469
+ /**
470
+ * This method will return a configurablescreen delta matching the properties received from the incomming delta
471
+ * @param configurableScreenDelta - A delta populated with wanted properties
472
+ * @returns An array of deltas matching the values of the incomming parameter-delta
473
+ */
474
+ public async getConfigurableScreenDeltasByDeltaAsync(configurableScreenDelta: carriers.ConfigurableScreenDelta, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
475
+
476
+ public async getConfigurableScreenDeltasByDeltaAsync(configurableScreenDelta:carriers.ConfigurableScreenDelta|carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] > {
477
+ let _request : carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest = null;
478
+ let _options : base.WebApiRequestOptions = null;
479
+ const first : any = configurableScreenDelta;
480
+ if( typeof( first ) === "object" && first && ( typeof(first.configurableScreenDelta)!='undefined' ) )
481
+ {
482
+ _request = configurableScreenDelta as carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest;
483
+ _options = webapi_options as base.WebApiRequestOptions;
484
+ }
485
+ else
486
+ {
487
+ _request = {
488
+ configurableScreenDelta: configurableScreenDelta as carriers.ConfigurableScreenDelta,
489
+ };
490
+ _options = webapi_options;
491
+ }
492
+ return this._getConfigurableScreenDeltasByDeltaAsync( _request, _options );
493
+ }
494
+
495
+
496
+ private async _getConfigurableScreenDeltasByQueryAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] > {
497
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
498
+ base.WebApiBase.SetPending(options);
499
+ return new Promise< carriers.ConfigurableScreenDelta[] >(async (resolve, reject) => {
500
+ try {
501
+ config.baseURL = this._options.baseUrl;
502
+ const response = await this._axios.post("GetConfigurableScreenDeltasByQuery", request , config);
503
+ base.WebApiBase.SetCompleted(options);
504
+ const res : carriers.ConfigurableScreenDelta[] = converters.Create_ConfigurableScreenDeltaArray_From( response.data );
505
+ resolve(res);
506
+ }
507
+ catch( err ) {
508
+ base.WebApiBase.HandleError(options, config, err);
509
+ reject(err);
510
+ }
511
+ });
512
+ }
513
+
514
+
515
+
516
+ /**
517
+ * This method will return a configurablescreen delta matching the properties received from the incomming query
518
+ * @param request - DeltaQuery
519
+ * @returns An array of deltas matching the values of the incomming query
520
+ */
521
+ public async getConfigurableScreenDeltasByQueryAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
522
+
523
+ /**
524
+ * This method will return a configurablescreen delta matching the properties received from the incomming query
525
+ * @param deltaQuery - An object populated with wanted properties for the deltas to return
526
+ * @returns An array of deltas matching the values of the incomming query
527
+ */
528
+ public async getConfigurableScreenDeltasByQueryAsync(deltaQuery: carriers.DeltaQuery, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
529
+
530
+ public async getConfigurableScreenDeltasByQueryAsync(deltaQuery:carriers.DeltaQuery|carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] > {
531
+ let _request : carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest = null;
532
+ let _options : base.WebApiRequestOptions = null;
533
+ const first : any = deltaQuery;
534
+ if( typeof( first ) === "object" && first && ( typeof(first.deltaQuery)!='undefined' ) )
535
+ {
536
+ _request = deltaQuery as carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest;
537
+ _options = webapi_options as base.WebApiRequestOptions;
538
+ }
539
+ else
540
+ {
541
+ _request = {
542
+ deltaQuery: deltaQuery as carriers.DeltaQuery,
543
+ };
544
+ _options = webapi_options;
545
+ }
546
+ return this._getConfigurableScreenDeltasByQueryAsync( _request, _options );
547
+ }
548
+
549
+
550
+ private async _rebuildUdefDeltasAsync( options?:base.WebApiRequestOptions) : Promise< void > {
551
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
552
+ base.WebApiBase.SetPending(options);
553
+ return new Promise< void >(async (resolve, reject) => {
554
+ try {
555
+ config.baseURL = this._options.baseUrl;
556
+ const response = await this._axios.post("RebuildUdefDeltas", undefined , config);
557
+ base.WebApiBase.SetCompleted(options);
558
+ const res = response.data;
559
+ resolve(res);
560
+ }
561
+ catch( err ) {
562
+ base.WebApiBase.HandleError(options, config, err);
563
+ reject(err);
564
+ }
565
+ });
566
+ }
567
+
568
+
569
+ /**
570
+ * Flush and rebuild userdefined field deltas. Mostly used after publishing udefs or adding/editing Customer Service extrafields
571
+ * @returns No return value
572
+ */
573
+ public async rebuildUdefDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
574
+ {
575
+ return this._rebuildUdefDeltasAsync(webapi_options);
576
+ }
577
+
578
+
579
+ private async _rebuildWebpanelDeltasAsync( options?:base.WebApiRequestOptions) : Promise< void > {
580
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
581
+ base.WebApiBase.SetPending(options);
582
+ return new Promise< void >(async (resolve, reject) => {
583
+ try {
584
+ config.baseURL = this._options.baseUrl;
585
+ const response = await this._axios.post("RebuildWebpanelDeltas", undefined , config);
586
+ base.WebApiBase.SetCompleted(options);
587
+ const res = response.data;
588
+ resolve(res);
589
+ }
590
+ catch( err ) {
591
+ base.WebApiBase.HandleError(options, config, err);
592
+ reject(err);
593
+ }
594
+ });
595
+ }
596
+
597
+
598
+ /**
599
+ * Flush and rebuild webpanel deltas. Mostly used after adding/editing webpanels or change group visibility of them
600
+ * @returns No return value
601
+ */
602
+ public async rebuildWebpanelDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
603
+ {
604
+ return this._rebuildWebpanelDeltasAsync(webapi_options);
605
+ }
606
+
607
+
608
+ private async _saveAndPublishAsync(request: carriers.Configuration_SaveAndPublishRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
609
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
610
+ base.WebApiBase.SetPending(options);
611
+ return new Promise< carriers.ConfigurableScreenDelta >(async (resolve, reject) => {
612
+ try {
613
+ config.baseURL = this._options.baseUrl;
614
+ const response = await this._axios.post("SaveAndPublish", request , config);
615
+ base.WebApiBase.SetCompleted(options);
616
+ const res : carriers.ConfigurableScreenDelta = converters.Create_ConfigurableScreenDelta_From( response.data );
617
+ resolve(res);
618
+ }
619
+ catch( err ) {
620
+ base.WebApiBase.HandleError(options, config, err);
621
+ reject(err);
622
+ }
623
+ });
624
+ }
625
+
626
+
627
+
628
+ /**
629
+ * Save the incomming draft and publish
630
+ * @param request - ConfigurableScreenDelta
631
+ * @returns The newly published version of the ConfigurbleScreenDelta
632
+ */
633
+ public async saveAndPublishAsync(request: carriers.Configuration_SaveAndPublishRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta >;
634
+
635
+ /**
636
+ * Save the incomming draft and publish
637
+ * @param configurableScreenDelta - The ConfigurableScreenDelta draft that is going to be published
638
+ * @returns The newly published version of the ConfigurbleScreenDelta
639
+ */
640
+ public async saveAndPublishAsync(configurableScreenDelta: carriers.ConfigurableScreenDelta, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta >;
641
+
642
+ public async saveAndPublishAsync(configurableScreenDelta:carriers.ConfigurableScreenDelta|carriers.Configuration_SaveAndPublishRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
643
+ let _request : carriers.Configuration_SaveAndPublishRequest = null;
644
+ let _options : base.WebApiRequestOptions = null;
645
+ const first : any = configurableScreenDelta;
646
+ if( typeof( first ) === "object" && first && ( typeof(first.configurableScreenDelta)!='undefined' ) )
647
+ {
648
+ _request = configurableScreenDelta as carriers.Configuration_SaveAndPublishRequest;
649
+ _options = webapi_options as base.WebApiRequestOptions;
650
+ }
651
+ else
652
+ {
653
+ _request = {
654
+ configurableScreenDelta: configurableScreenDelta as carriers.ConfigurableScreenDelta,
655
+ };
656
+ _options = webapi_options;
657
+ }
658
+ return this._saveAndPublishAsync( _request, _options );
659
+ }
660
+
661
+
662
+ private async _setAppliesToKeyAsync(request: carriers.Configuration_SetAppliesToKeyRequest, options?:base.WebApiRequestOptions) : Promise< void > {
663
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
664
+ base.WebApiBase.SetPending(options);
665
+ return new Promise< void >(async (resolve, reject) => {
666
+ try {
667
+ config.baseURL = this._options.baseUrl;
668
+ const response = await this._axios.post("SetAppliesToKey", request , config);
669
+ base.WebApiBase.SetCompleted(options);
670
+ const res = response.data;
671
+ resolve(res);
672
+ }
673
+ catch( err ) {
674
+ base.WebApiBase.HandleError(options, config, err);
675
+ reject(err);
676
+ }
677
+ });
678
+ }
679
+
680
+
681
+
682
+ /**
683
+ * Set the type of assignTo the deltas of the given recipe should have
684
+ * @param request - RecipeId, AppliesToKey
685
+ * @returns Returns nothing
686
+ */
687
+ public async setAppliesToKeyAsync(request: carriers.Configuration_SetAppliesToKeyRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
688
+
689
+ /**
690
+ * Set the type of assignTo the deltas of the given recipe should have
691
+ * @param recipeId - The recipeId that will use this apply to type
692
+ * @param appliesToKey - The type we should use for differencing between delta layout. Like usergroup or project type. Saved in table ConfigurableScreenAppliesTo
693
+ * @returns Returns nothing
694
+ */
695
+ public async setAppliesToKeyAsync(recipeId: string, appliesToKey: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
696
+
697
+ public async setAppliesToKeyAsync(recipeId:string|carriers.Configuration_SetAppliesToKeyRequest, appliesToKey?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
698
+ let _request : carriers.Configuration_SetAppliesToKeyRequest = null;
699
+ let _options : base.WebApiRequestOptions = null;
700
+ const first : any = recipeId;
701
+ if( typeof( first ) === "object" && first && ( typeof(first.recipeId)!='undefined' || typeof(first.appliesToKey)!='undefined' ) )
702
+ {
703
+ _request = recipeId as carriers.Configuration_SetAppliesToKeyRequest;
704
+ _options = appliesToKey as base.WebApiRequestOptions;
705
+ }
706
+ else
707
+ {
708
+ _request = {
709
+ recipeId: recipeId as string,
710
+ appliesToKey: appliesToKey as string,
711
+ };
712
+ _options = webapi_options;
713
+ }
714
+ return this._setAppliesToKeyAsync( _request, _options );
715
+ }
716
+
717
+
718
+ private async _getRecipeAppliesToMappingsAsync( options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary > {
719
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
720
+ base.WebApiBase.SetPending(options);
721
+ return new Promise< carriers.StringDictionary >(async (resolve, reject) => {
722
+ try {
723
+ config.baseURL = this._options.baseUrl;
724
+ const response = await this._axios.post("GetRecipeAppliesToMappings", undefined , config);
725
+ base.WebApiBase.SetCompleted(options);
726
+ const res : carriers.StringDictionary = converters.Create_StringDictionary_From( response.data );
727
+ resolve(res);
728
+ }
729
+ catch( err ) {
730
+ base.WebApiBase.HandleError(options, config, err);
731
+ reject(err);
732
+ }
733
+ });
734
+ }
735
+
736
+
737
+ /**
738
+ * Return the a dictionary with recipeId as key, and chosen appliesTo for that recipe, Like projecttype for projectcardrecipe
739
+ * @returns Mapping of recipeId and selected appliesToKey
740
+ */
741
+ public async getRecipeAppliesToMappingsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >
742
+ {
743
+ return this._getRecipeAppliesToMappingsAsync(webapi_options);
744
+ }
745
+
746
+
747
+ private async _getApplicationConfigurationAsync(request: carriers.Configuration_GetApplicationConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< string > {
748
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
749
+ base.WebApiBase.SetPending(options);
750
+ return new Promise< string >(async (resolve, reject) => {
751
+ try {
752
+ config.baseURL = this._options.baseUrl;
753
+ const response = await this._axios.post("GetApplicationConfiguration", request , config);
754
+ base.WebApiBase.SetCompleted(options);
755
+ const res : string = response.data as string;
756
+ resolve(res);
757
+ }
758
+ catch( err ) {
759
+ base.WebApiBase.HandleError(options, config, err);
760
+ reject(err);
761
+ }
762
+ });
763
+ }
764
+
765
+
766
+
767
+ /**
768
+ * Return the application configuration. This is a list of pages, with information about the name, main panel and preference mappings of each page.
769
+ * @param request - Application, Instance
770
+ * @returns XML structure containing the application configuration
771
+ */
772
+ public async getApplicationConfigurationAsync(request: carriers.Configuration_GetApplicationConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
773
+
774
+ /**
775
+ * Return the application configuration. This is a list of pages, with information about the name, main panel and preference mappings of each page.
776
+ * @param application - The application name, for instance 'SixWeb'
777
+ * @param instance - The instance name for the application, like 'MainInstance'
778
+ * @returns XML structure containing the application configuration
779
+ */
780
+ public async getApplicationConfigurationAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
781
+
782
+ public async getApplicationConfigurationAsync(application:string|carriers.Configuration_GetApplicationConfigurationRequest, instance?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
783
+ let _request : carriers.Configuration_GetApplicationConfigurationRequest = null;
784
+ let _options : base.WebApiRequestOptions = null;
785
+ const first : any = application;
786
+ if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' ) )
787
+ {
788
+ _request = application as carriers.Configuration_GetApplicationConfigurationRequest;
789
+ _options = instance as base.WebApiRequestOptions;
790
+ }
791
+ else
792
+ {
793
+ _request = {
794
+ application: application as string,
795
+ instance: instance as string,
796
+ };
797
+ _options = webapi_options;
798
+ }
799
+ return this._getApplicationConfigurationAsync( _request, _options );
800
+ }
801
+
802
+
803
+ private async _getPageConfigurationAsync(request: carriers.Configuration_GetPageConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< string > {
804
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
805
+ base.WebApiBase.SetPending(options);
806
+ return new Promise< string >(async (resolve, reject) => {
807
+ try {
808
+ config.baseURL = this._options.baseUrl;
809
+ const response = await this._axios.post("GetPageConfiguration", request , config);
810
+ base.WebApiBase.SetCompleted(options);
811
+ const res : string = response.data as string;
812
+ resolve(res);
813
+ }
814
+ catch( err ) {
815
+ base.WebApiBase.HandleError(options, config, err);
816
+ reject(err);
817
+ }
818
+ });
819
+ }
820
+
821
+
822
+
823
+ /**
824
+ * Get the configuration for one whole web page, including all its panels etc. totally asynchronous items like menus are not included, but all references are resolved and all special processing is applied.
825
+ * @param request - Application, Instance, Page
826
+ * @returns XML containing the configuration for the given page, from the page down to the control level.
827
+ */
828
+ public async getPageConfigurationAsync(request: carriers.Configuration_GetPageConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
829
+
830
+ /**
831
+ * Get the configuration for one whole web page, including all its panels etc. totally asynchronous items like menus are not included, but all references are resolved and all special processing is applied.
832
+ * @param application - The application name, for instance 'SixWeb
833
+ * @param instance - The instance name for the application, like 'MainInstance'
834
+ * @param page - Page name, must correspond to one of the pages in the Application Configuration
835
+ * @returns XML containing the configuration for the given page, from the page down to the control level.
836
+ */
837
+ public async getPageConfigurationAsync(application: string, instance: string, page: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
838
+
839
+ public async getPageConfigurationAsync(application:string|carriers.Configuration_GetPageConfigurationRequest, instance?:string|base.WebApiRequestOptions, page?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
840
+ let _request : carriers.Configuration_GetPageConfigurationRequest = null;
841
+ let _options : base.WebApiRequestOptions = null;
842
+ const first : any = application;
843
+ if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' || typeof(first.page)!='undefined' ) )
844
+ {
845
+ _request = application as carriers.Configuration_GetPageConfigurationRequest;
846
+ _options = instance as base.WebApiRequestOptions;
847
+ }
848
+ else
849
+ {
850
+ _request = {
851
+ application: application as string,
852
+ instance: instance as string,
853
+ page: page as string,
854
+ };
855
+ _options = webapi_options;
856
+ }
857
+ return this._getPageConfigurationAsync( _request, _options );
858
+ }
859
+
860
+
861
+ private async _getObjectMappingAsync(request: carriers.Configuration_GetObjectMappingRequest, options?:base.WebApiRequestOptions) : Promise< string > {
862
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
863
+ base.WebApiBase.SetPending(options);
864
+ return new Promise< string >(async (resolve, reject) => {
865
+ try {
866
+ config.baseURL = this._options.baseUrl;
867
+ const response = await this._axios.post("GetObjectMapping", request , config);
868
+ base.WebApiBase.SetCompleted(options);
869
+ const res : string = response.data as string;
870
+ resolve(res);
871
+ }
872
+ catch( err ) {
873
+ base.WebApiBase.HandleError(options, config, err);
874
+ reject(err);
875
+ }
876
+ });
877
+ }
878
+
879
+
880
+
881
+ /**
882
+ * Get the object mappings, i.e., the what code objects should be instantiated to handle the entities of the client configuration.
883
+ * @param request - Application, Instance
884
+ * @returns XML containing the object mappings, including assembly and class names
885
+ */
886
+ public async getObjectMappingAsync(request: carriers.Configuration_GetObjectMappingRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
887
+
888
+ /**
889
+ * Get the object mappings, i.e., the what code objects should be instantiated to handle the entities of the client configuration.
890
+ * @param application - The application name, for instance 'SixWeb'
891
+ * @param instance - The instance name for the application, like 'MainInstance'
892
+ * @returns XML containing the object mappings, including assembly and class names
893
+ */
894
+ public async getObjectMappingAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
895
+
896
+ public async getObjectMappingAsync(application:string|carriers.Configuration_GetObjectMappingRequest, instance?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
897
+ let _request : carriers.Configuration_GetObjectMappingRequest = null;
898
+ let _options : base.WebApiRequestOptions = null;
899
+ const first : any = application;
900
+ if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' ) )
901
+ {
902
+ _request = application as carriers.Configuration_GetObjectMappingRequest;
903
+ _options = instance as base.WebApiRequestOptions;
904
+ }
905
+ else
906
+ {
907
+ _request = {
908
+ application: application as string,
909
+ instance: instance as string,
910
+ };
911
+ _options = webapi_options;
912
+ }
913
+ return this._getObjectMappingAsync( _request, _options );
914
+ }
915
+
916
+
917
+ private async _getFilterListAsync(request: carriers.Configuration_GetFilterListRequest, options?:base.WebApiRequestOptions) : Promise< string > {
918
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
919
+ base.WebApiBase.SetPending(options);
920
+ return new Promise< string >(async (resolve, reject) => {
921
+ try {
922
+ config.baseURL = this._options.baseUrl;
923
+ const response = await this._axios.post("GetFilterList", request , config);
924
+ base.WebApiBase.SetCompleted(options);
925
+ const res : string = response.data as string;
926
+ resolve(res);
927
+ }
928
+ catch( err ) {
929
+ base.WebApiBase.HandleError(options, config, err);
930
+ reject(err);
931
+ }
932
+ });
933
+ }
934
+
935
+
936
+
937
+ /**
938
+ * Get the list of filters to be used for processing the configuration data for this application.
939
+ * @param request - Application, Instance
940
+ * @returns XML representing the list of filters and any configuration data they may need.
941
+ */
942
+ public async getFilterListAsync(request: carriers.Configuration_GetFilterListRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
943
+
944
+ /**
945
+ * Get the list of filters to be used for processing the configuration data for this application.
946
+ * @param application - The application name, for instance 'SixWeb'
947
+ * @param instance - The instance name for the application, like 'MainInstance'
948
+ * @returns XML representing the list of filters and any configuration data they may need.
949
+ */
950
+ public async getFilterListAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
951
+
952
+ public async getFilterListAsync(application:string|carriers.Configuration_GetFilterListRequest, instance?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
953
+ let _request : carriers.Configuration_GetFilterListRequest = null;
954
+ let _options : base.WebApiRequestOptions = null;
955
+ const first : any = application;
956
+ if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' ) )
957
+ {
958
+ _request = application as carriers.Configuration_GetFilterListRequest;
959
+ _options = instance as base.WebApiRequestOptions;
960
+ }
961
+ else
962
+ {
963
+ _request = {
964
+ application: application as string,
965
+ instance: instance as string,
966
+ };
967
+ _options = webapi_options;
968
+ }
969
+ return this._getFilterListAsync( _request, _options );
970
+ }
971
+
972
+
973
+ private async _clearConfigurationCacheAsync(request: carriers.Configuration_ClearConfigurationCacheRequest, options?:base.WebApiRequestOptions) : Promise< void > {
974
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
975
+ base.WebApiBase.SetPending(options);
976
+ return new Promise< void >(async (resolve, reject) => {
977
+ try {
978
+ config.baseURL = this._options.baseUrl;
979
+ const response = await this._axios.post("ClearConfigurationCache", request , config);
980
+ base.WebApiBase.SetCompleted(options);
981
+ const res = response.data;
982
+ resolve(res);
983
+ }
984
+ catch( err ) {
985
+ base.WebApiBase.HandleError(options, config, err);
986
+ reject(err);
987
+ }
988
+ });
989
+ }
990
+
991
+
992
+
993
+ /**
994
+ * Configuration XML&apos;s may be expensive to build and parse, and are therefore cached to the database. &lt;para/&gt;Cahcing is per application/instance/associate, and can be turned off through the config file. &lt;para/&gt;If caching is on, and the configuration is changed, it is necessary to clear the cached configurations from the database, through this call.&lt;para/&gt;Note that changes to the externalapplication table require cache invalidation. SoAdmin will do so automatically.
995
+ * @param request - Application, Instance, ForAllAssociates
996
+ * @returns There is no return value.
997
+ */
998
+ public async clearConfigurationCacheAsync(request: carriers.Configuration_ClearConfigurationCacheRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
999
+
1000
+ /**
1001
+ * Configuration XML&apos;s may be expensive to build and parse, and are therefore cached to the database. &lt;para/&gt;Cahcing is per application/instance/associate, and can be turned off through the config file. &lt;para/&gt;If caching is on, and the configuration is changed, it is necessary to clear the cached configurations from the database, through this call.&lt;para/&gt;Note that changes to the externalapplication table require cache invalidation. SoAdmin will do so automatically.
1002
+ * @param application - The application name, for instance 'SixWeb'
1003
+ * @param instance - The instance name for the application, like 'MainInstance'
1004
+ * @param forAllAssociates - If false, only the current associate's configuration is cleared. If true, configurations are cleared for all associates.
1005
+ * @returns There is no return value.
1006
+ */
1007
+ public async clearConfigurationCacheAsync(application: string, instance: string, forAllAssociates: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
1008
+
1009
+ public async clearConfigurationCacheAsync(application:string|carriers.Configuration_ClearConfigurationCacheRequest, instance?:string|base.WebApiRequestOptions, forAllAssociates?:boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
1010
+ let _request : carriers.Configuration_ClearConfigurationCacheRequest = null;
1011
+ let _options : base.WebApiRequestOptions = null;
1012
+ const first : any = application;
1013
+ if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' || typeof(first.forAllAssociates)!='undefined' ) )
1014
+ {
1015
+ _request = application as carriers.Configuration_ClearConfigurationCacheRequest;
1016
+ _options = instance as base.WebApiRequestOptions;
1017
+ }
1018
+ else
1019
+ {
1020
+ _request = {
1021
+ application: application as string,
1022
+ instance: instance as string,
1023
+ forAllAssociates: forAllAssociates as boolean,
1024
+ };
1025
+ _options = webapi_options;
1026
+ }
1027
+ return this._clearConfigurationCacheAsync( _request, _options );
1028
+ }
1029
+
1030
+
1031
+ private async _getAnyConfigurationAsync(request: carriers.Configuration_GetAnyConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< string > {
1032
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1033
+ base.WebApiBase.SetPending(options);
1034
+ return new Promise< string >(async (resolve, reject) => {
1035
+ try {
1036
+ config.baseURL = this._options.baseUrl;
1037
+ const response = await this._axios.post("GetAnyConfiguration", request , config);
1038
+ base.WebApiBase.SetCompleted(options);
1039
+ const res : string = response.data as string;
1040
+ resolve(res);
1041
+ }
1042
+ catch( err ) {
1043
+ base.WebApiBase.HandleError(options, config, err);
1044
+ reject(err);
1045
+ }
1046
+ });
1047
+ }
1048
+
1049
+
1050
+
1051
+ /**
1052
+ * Get one defined configuration fragment, with full reference resolution and parsing applied. This is essentially the same service as the GetPageConfiguration, except that this service is not locked to objects of type Page.
1053
+ * @param request - Application, Instance, Item, Type
1054
+ * @returns Fully resolved and parsed configuration XML, as string.
1055
+ */
1056
+ public async getAnyConfigurationAsync(request: carriers.Configuration_GetAnyConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1057
+
1058
+ /**
1059
+ * Get one defined configuration fragment, with full reference resolution and parsing applied. This is essentially the same service as the GetPageConfiguration, except that this service is not locked to objects of type Page.
1060
+ * @param application - The application name, for instance Six.Web
1061
+ * @param instance - The instance name, for instance Main
1062
+ * @param item - The configuration item name (first component of file name)
1063
+ * @param type - The configuration item type (second component of file name)
1064
+ * @returns Fully resolved and parsed configuration XML, as string.
1065
+ */
1066
+ public async getAnyConfigurationAsync(application: string, instance: string, item: string, type: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1067
+
1068
+ public async getAnyConfigurationAsync(application:string|carriers.Configuration_GetAnyConfigurationRequest, instance?:string|base.WebApiRequestOptions, item?:string, type?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
1069
+ let _request : carriers.Configuration_GetAnyConfigurationRequest = null;
1070
+ let _options : base.WebApiRequestOptions = null;
1071
+ const first : any = application;
1072
+ if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' || typeof(first.item)!='undefined' || typeof(first.type)!='undefined' ) )
1073
+ {
1074
+ _request = application as carriers.Configuration_GetAnyConfigurationRequest;
1075
+ _options = instance as base.WebApiRequestOptions;
1076
+ }
1077
+ else
1078
+ {
1079
+ _request = {
1080
+ application: application as string,
1081
+ instance: instance as string,
1082
+ item: item as string,
1083
+ type: type as string,
1084
+ };
1085
+ _options = webapi_options;
1086
+ }
1087
+ return this._getAnyConfigurationAsync( _request, _options );
1088
+ }
1089
+
1090
+
1091
+ private async _getEMarketingUrlAsync(request: carriers.Configuration_GetEMarketingUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
1092
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1093
+ base.WebApiBase.SetPending(options);
1094
+ return new Promise< string >(async (resolve, reject) => {
1095
+ try {
1096
+ config.baseURL = this._options.baseUrl;
1097
+ const response = await this._axios.post("GetEMarketingUrl", request , config);
1098
+ base.WebApiBase.SetCompleted(options);
1099
+ const res : string = response.data as string;
1100
+ resolve(res);
1101
+ }
1102
+ catch( err ) {
1103
+ base.WebApiBase.HandleError(options, config, err);
1104
+ reject(err);
1105
+ }
1106
+ });
1107
+ }
1108
+
1109
+
1110
+
1111
+ /**
1112
+ *
1113
+ * @param request - Language
1114
+ * @returns
1115
+ */
1116
+ public async getEMarketingUrlAsync(request: carriers.Configuration_GetEMarketingUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1117
+
1118
+ /**
1119
+ *
1120
+ * @param language -
1121
+ * @returns
1122
+ */
1123
+ public async getEMarketingUrlAsync(language: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1124
+
1125
+ public async getEMarketingUrlAsync(language:string|carriers.Configuration_GetEMarketingUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
1126
+ let _request : carriers.Configuration_GetEMarketingUrlRequest = null;
1127
+ let _options : base.WebApiRequestOptions = null;
1128
+ const first : any = language;
1129
+ if( typeof( first ) === "object" && first && ( typeof(first.language)!='undefined' ) )
1130
+ {
1131
+ _request = language as carriers.Configuration_GetEMarketingUrlRequest;
1132
+ _options = webapi_options as base.WebApiRequestOptions;
1133
+ }
1134
+ else
1135
+ {
1136
+ _request = {
1137
+ language: language as string,
1138
+ };
1139
+ _options = webapi_options;
1140
+ }
1141
+ return this._getEMarketingUrlAsync( _request, _options );
1142
+ }
1143
+
1144
+
1145
+ private async _getCsProgramUrlAsync(request: carriers.Configuration_GetCsProgramUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
1146
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1147
+ base.WebApiBase.SetPending(options);
1148
+ return new Promise< string >(async (resolve, reject) => {
1149
+ try {
1150
+ config.baseURL = this._options.baseUrl;
1151
+ const response = await this._axios.post("GetCsProgramUrl", request , config);
1152
+ base.WebApiBase.SetCompleted(options);
1153
+ const res : string = response.data as string;
1154
+ resolve(res);
1155
+ }
1156
+ catch( err ) {
1157
+ base.WebApiBase.HandleError(options, config, err);
1158
+ reject(err);
1159
+ }
1160
+ });
1161
+ }
1162
+
1163
+
1164
+
1165
+ /**
1166
+ * This method will convert a module name into a CS URL.
1167
+ * @param request - Language, ProgramName, Action, ExtraParameters
1168
+ * @returns Returns a valid CS URL composed of the give parameters.
1169
+ */
1170
+ public async getCsProgramUrlAsync(request: carriers.Configuration_GetCsProgramUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1171
+
1172
+ /**
1173
+ * This method will convert a module name into a CS URL.
1174
+ * @param language - By setting this parameter, you can change the CS language for the current user.
1175
+ * @param programName - In this parameter you must specify which CS program you want to create an URL for. Valid examples are "ticket", "rms", "spm" etc.
1176
+ * @param action - Here you can optionally specify the action for the current program. This will enable you to go to a specific screen.
1177
+ * @param extraParameters - If an action is specified, you can specify extra parameters here. This can be used to set specific behaviour for the chosen screen/action. If an empty action is supplied, this parameter will be ignored.
1178
+ * @returns Returns a valid CS URL composed of the give parameters.
1179
+ */
1180
+ public async getCsProgramUrlAsync(language: string, programName: string, action: string, extraParameters: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1181
+
1182
+ public async getCsProgramUrlAsync(language:string|carriers.Configuration_GetCsProgramUrlRequest, programName?:string|base.WebApiRequestOptions, action?:string, extraParameters?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
1183
+ let _request : carriers.Configuration_GetCsProgramUrlRequest = null;
1184
+ let _options : base.WebApiRequestOptions = null;
1185
+ const first : any = language;
1186
+ if( typeof( first ) === "object" && first && ( typeof(first.language)!='undefined' || typeof(first.programName)!='undefined' || typeof(first.action)!='undefined' || typeof(first.extraParameters)!='undefined' ) )
1187
+ {
1188
+ _request = language as carriers.Configuration_GetCsProgramUrlRequest;
1189
+ _options = programName as base.WebApiRequestOptions;
1190
+ }
1191
+ else
1192
+ {
1193
+ _request = {
1194
+ language: language as string,
1195
+ programName: programName as string,
1196
+ action: action as string,
1197
+ extraParameters: extraParameters as string,
1198
+ };
1199
+ _options = webapi_options;
1200
+ }
1201
+ return this._getCsProgramUrlAsync( _request, _options );
1202
+ }
1203
+
1204
+
1205
+ private async _getCSAuthUrlAsync(request: carriers.Configuration_GetCSAuthUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
1206
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1207
+ base.WebApiBase.SetPending(options);
1208
+ return new Promise< string >(async (resolve, reject) => {
1209
+ try {
1210
+ config.baseURL = this._options.baseUrl;
1211
+ const response = await this._axios.post("GetCSAuthUrl", request , config);
1212
+ base.WebApiBase.SetCompleted(options);
1213
+ const res : string = response.data as string;
1214
+ resolve(res);
1215
+ }
1216
+ catch( err ) {
1217
+ base.WebApiBase.HandleError(options, config, err);
1218
+ reject(err);
1219
+ }
1220
+ });
1221
+ }
1222
+
1223
+
1224
+
1225
+ /**
1226
+ * Will generate an url to the emarketing module
1227
+ * @param request - Language, ProgramName, Action, ExtraParameters
1228
+ * @returns Returns a valid CS URL composed of the give parameters.
1229
+ */
1230
+ public async getCSAuthUrlAsync(request: carriers.Configuration_GetCSAuthUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1231
+
1232
+ /**
1233
+ * Will generate an url to the emarketing module
1234
+ * @param language - By setting this parameter, you can change the CS language for the current user.
1235
+ * @param programName - In this parameter you must specify which CS program you want to create an URL for. Valid examples are "ticket", "rms", "spm" etc.
1236
+ * @param action - Here you can optionally specify the action for the current program. This will enable you to go to a specific screen.
1237
+ * @param extraParameters - If an action is specified, you can specify extra parameters here. This can be used to set specific behaviour for the chosen screen/action. If an empty action is supplied, this parameter will be ignored.
1238
+ * @returns Returns a valid CS URL composed of the give parameters.
1239
+ */
1240
+ public async getCSAuthUrlAsync(language: string, programName: string, action: string, extraParameters: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1241
+
1242
+ public async getCSAuthUrlAsync(language:string|carriers.Configuration_GetCSAuthUrlRequest, programName?:string|base.WebApiRequestOptions, action?:string, extraParameters?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
1243
+ let _request : carriers.Configuration_GetCSAuthUrlRequest = null;
1244
+ let _options : base.WebApiRequestOptions = null;
1245
+ const first : any = language;
1246
+ if( typeof( first ) === "object" && first && ( typeof(first.language)!='undefined' || typeof(first.programName)!='undefined' || typeof(first.action)!='undefined' || typeof(first.extraParameters)!='undefined' ) )
1247
+ {
1248
+ _request = language as carriers.Configuration_GetCSAuthUrlRequest;
1249
+ _options = programName as base.WebApiRequestOptions;
1250
+ }
1251
+ else
1252
+ {
1253
+ _request = {
1254
+ language: language as string,
1255
+ programName: programName as string,
1256
+ action: action as string,
1257
+ extraParameters: extraParameters as string,
1258
+ };
1259
+ _options = webapi_options;
1260
+ }
1261
+ return this._getCSAuthUrlAsync( _request, _options );
1262
+ }
1263
+
1264
+
1265
+ private async _getCSRegistryValueAsync(request: carriers.Configuration_GetCSRegistryValueRequest, options?:base.WebApiRequestOptions) : Promise< string > {
1266
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1267
+ base.WebApiBase.SetPending(options);
1268
+ return new Promise< string >(async (resolve, reject) => {
1269
+ try {
1270
+ config.baseURL = this._options.baseUrl;
1271
+ const response = await this._axios.post("GetCSRegistryValue", request , config);
1272
+ base.WebApiBase.SetCompleted(options);
1273
+ const res : string = response.data as string;
1274
+ resolve(res);
1275
+ }
1276
+ catch( err ) {
1277
+ base.WebApiBase.HandleError(options, config, err);
1278
+ reject(err);
1279
+ }
1280
+ });
1281
+ }
1282
+
1283
+
1284
+
1285
+ /**
1286
+ * This method will get a value from the CS Registry table.
1287
+ * @param request - Entry
1288
+ * @returns The value of the specified Registry entry
1289
+ */
1290
+ public async getCSRegistryValueAsync(request: carriers.Configuration_GetCSRegistryValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1291
+
1292
+ /**
1293
+ * This method will get a value from the CS Registry table.
1294
+ * @param entry - The Registry entry to get
1295
+ * @returns The value of the specified Registry entry
1296
+ */
1297
+ public async getCSRegistryValueAsync(entry: number, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1298
+
1299
+ public async getCSRegistryValueAsync(entry:number|carriers.Configuration_GetCSRegistryValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
1300
+ let _request : carriers.Configuration_GetCSRegistryValueRequest = null;
1301
+ let _options : base.WebApiRequestOptions = null;
1302
+ const first : any = entry;
1303
+ if( typeof( first ) === "object" && first && ( typeof(first.entry)!='undefined' ) )
1304
+ {
1305
+ _request = entry as carriers.Configuration_GetCSRegistryValueRequest;
1306
+ _options = webapi_options as base.WebApiRequestOptions;
1307
+ }
1308
+ else
1309
+ {
1310
+ _request = {
1311
+ entry: entry as number,
1312
+ };
1313
+ _options = webapi_options;
1314
+ }
1315
+ return this._getCSRegistryValueAsync( _request, _options );
1316
+ }
1317
+
1318
+
1319
+ private async _getCSWwwFolderAsync( options?:base.WebApiRequestOptions) : Promise< string > {
1320
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1321
+ base.WebApiBase.SetPending(options);
1322
+ return new Promise< string >(async (resolve, reject) => {
1323
+ try {
1324
+ config.baseURL = this._options.baseUrl;
1325
+ const response = await this._axios.post("GetCSWwwFolder", undefined , config);
1326
+ base.WebApiBase.SetCompleted(options);
1327
+ const res : string = response.data as string;
1328
+ resolve(res);
1329
+ }
1330
+ catch( err ) {
1331
+ base.WebApiBase.HandleError(options, config, err);
1332
+ reject(err);
1333
+ }
1334
+ });
1335
+ }
1336
+
1337
+
1338
+ /**
1339
+ * This method will get the www folder for CS
1340
+ * @returns The www folder for CS
1341
+ */
1342
+ public async getCSWwwFolderAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
1343
+ {
1344
+ return this._getCSWwwFolderAsync(webapi_options);
1345
+ }
1346
+
1347
+
1348
+ private async _getRefreshedPageConfigurationAsync(request: carriers.Configuration_GetRefreshedPageConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< string > {
1349
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1350
+ base.WebApiBase.SetPending(options);
1351
+ return new Promise< string >(async (resolve, reject) => {
1352
+ try {
1353
+ config.baseURL = this._options.baseUrl;
1354
+ const response = await this._axios.post("GetRefreshedPageConfiguration", request , config);
1355
+ base.WebApiBase.SetCompleted(options);
1356
+ const res : string = response.data as string;
1357
+ resolve(res);
1358
+ }
1359
+ catch( err ) {
1360
+ base.WebApiBase.HandleError(options, config, err);
1361
+ reject(err);
1362
+ }
1363
+ });
1364
+ }
1365
+
1366
+
1367
+
1368
+ /**
1369
+ * Get the configuration for one whole web page, including all its panels etc. totally asynchronous items like menus are not included, but all references are resolved and all special processing is applied. Does not use cache for fetching, but updates the cache with refreshed configuration.
1370
+ * @param request - Application, Instance, Page
1371
+ * @returns XML containing the configuration for the given page, from the page down to the control level.
1372
+ */
1373
+ public async getRefreshedPageConfigurationAsync(request: carriers.Configuration_GetRefreshedPageConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1374
+
1375
+ /**
1376
+ * Get the configuration for one whole web page, including all its panels etc. totally asynchronous items like menus are not included, but all references are resolved and all special processing is applied. Does not use cache for fetching, but updates the cache with refreshed configuration.
1377
+ * @param application - The application name, for instance 'SixWeb
1378
+ * @param instance - The instance name for the application, like 'MainInstance'
1379
+ * @param page - Page name, must correspond to one of the pages in the Application Configuration
1380
+ * @returns XML containing the configuration for the given page, from the page down to the control level.
1381
+ */
1382
+ public async getRefreshedPageConfigurationAsync(application: string, instance: string, page: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1383
+
1384
+ public async getRefreshedPageConfigurationAsync(application:string|carriers.Configuration_GetRefreshedPageConfigurationRequest, instance?:string|base.WebApiRequestOptions, page?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
1385
+ let _request : carriers.Configuration_GetRefreshedPageConfigurationRequest = null;
1386
+ let _options : base.WebApiRequestOptions = null;
1387
+ const first : any = application;
1388
+ if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' || typeof(first.page)!='undefined' ) )
1389
+ {
1390
+ _request = application as carriers.Configuration_GetRefreshedPageConfigurationRequest;
1391
+ _options = instance as base.WebApiRequestOptions;
1392
+ }
1393
+ else
1394
+ {
1395
+ _request = {
1396
+ application: application as string,
1397
+ instance: instance as string,
1398
+ page: page as string,
1399
+ };
1400
+ _options = webapi_options;
1401
+ }
1402
+ return this._getRefreshedPageConfigurationAsync( _request, _options );
1403
+ }
1404
+
1405
+
1406
+ private async _getWwwUrlAsync(request: carriers.Configuration_GetWwwUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
1407
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1408
+ base.WebApiBase.SetPending(options);
1409
+ return new Promise< string >(async (resolve, reject) => {
1410
+ try {
1411
+ config.baseURL = this._options.baseUrl;
1412
+ const response = await this._axios.post("GetWwwUrl", request , config);
1413
+ base.WebApiBase.SetCompleted(options);
1414
+ const res : string = response.data as string;
1415
+ resolve(res);
1416
+ }
1417
+ catch( err ) {
1418
+ base.WebApiBase.HandleError(options, config, err);
1419
+ reject(err);
1420
+ }
1421
+ });
1422
+ }
1423
+
1424
+
1425
+
1426
+ /**
1427
+ * Will get the default URL used for the logo, from the [NetServices] PageUrl preferencec, with tags substituted.
1428
+ * @param request - Client
1429
+ * @returns URL to be used when clicking the logo
1430
+ */
1431
+ public async getWwwUrlAsync(request: carriers.Configuration_GetWwwUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1432
+
1433
+ /**
1434
+ * Will get the default URL used for the logo, from the [NetServices] PageUrl preferencec, with tags substituted.
1435
+ * @param client - The name for the client application, like 'CS' or 'SM.web', used for the <clie> variable
1436
+ * @returns URL to be used when clicking the logo
1437
+ */
1438
+ public async getWwwUrlAsync(client: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1439
+
1440
+ public async getWwwUrlAsync(client:string|carriers.Configuration_GetWwwUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
1441
+ let _request : carriers.Configuration_GetWwwUrlRequest = null;
1442
+ let _options : base.WebApiRequestOptions = null;
1443
+ const first : any = client;
1444
+ if( typeof( first ) === "object" && first && ( typeof(first.client)!='undefined' ) )
1445
+ {
1446
+ _request = client as carriers.Configuration_GetWwwUrlRequest;
1447
+ _options = webapi_options as base.WebApiRequestOptions;
1448
+ }
1449
+ else
1450
+ {
1451
+ _request = {
1452
+ client: client as string,
1453
+ };
1454
+ _options = webapi_options;
1455
+ }
1456
+ return this._getWwwUrlAsync( _request, _options );
1457
+ }
1458
+
1459
+
1460
+ private async _getHelpDispatcherUrlAsync( options?:base.WebApiRequestOptions) : Promise< string > {
1461
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1462
+ base.WebApiBase.SetPending(options);
1463
+ return new Promise< string >(async (resolve, reject) => {
1464
+ try {
1465
+ config.baseURL = this._options.baseUrl;
1466
+ const response = await this._axios.post("GetHelpDispatcherUrl", undefined , config);
1467
+ base.WebApiBase.SetCompleted(options);
1468
+ const res : string = response.data as string;
1469
+ resolve(res);
1470
+ }
1471
+ catch( err ) {
1472
+ base.WebApiBase.HandleError(options, config, err);
1473
+ reject(err);
1474
+ }
1475
+ });
1476
+ }
1477
+
1478
+
1479
+ /**
1480
+ * Will get the GetHelpDispatcherUrl used by the help system
1481
+ * @returns URL to be used by the help system
1482
+ */
1483
+ public async getHelpDispatcherUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
1484
+ {
1485
+ return this._getHelpDispatcherUrlAsync(webapi_options);
1486
+ }
1487
+
1488
+
1489
+ private async _getWwwUrlForSMWebAsync( options?:base.WebApiRequestOptions) : Promise< string > {
1490
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1491
+ base.WebApiBase.SetPending(options);
1492
+ return new Promise< string >(async (resolve, reject) => {
1493
+ try {
1494
+ config.baseURL = this._options.baseUrl;
1495
+ const response = await this._axios.post("GetWwwUrlForSMWeb", undefined , config);
1496
+ base.WebApiBase.SetCompleted(options);
1497
+ const res : string = response.data as string;
1498
+ resolve(res);
1499
+ }
1500
+ catch( err ) {
1501
+ base.WebApiBase.HandleError(options, config, err);
1502
+ reject(err);
1503
+ }
1504
+ });
1505
+ }
1506
+
1507
+
1508
+ /**
1509
+ * Returns the URL used for the logo by the SM.web client. Uses urldispatch.aspx
1510
+ * @returns Link to urldispatch.aspx tagged with [SOSITEURL]
1511
+ */
1512
+ public async getWwwUrlForSMWebAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
1513
+ {
1514
+ return this._getWwwUrlForSMWebAsync(webapi_options);
1515
+ }
1516
+
1517
+
1518
+ private async _getCsCgiUrlInternalAsync( options?:base.WebApiRequestOptions) : Promise< string > {
1519
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1520
+ base.WebApiBase.SetPending(options);
1521
+ return new Promise< string >(async (resolve, reject) => {
1522
+ try {
1523
+ config.baseURL = this._options.baseUrl;
1524
+ const response = await this._axios.post("GetCsCgiUrlInternal", undefined , config);
1525
+ base.WebApiBase.SetCompleted(options);
1526
+ const res : string = response.data as string;
1527
+ resolve(res);
1528
+ }
1529
+ catch( err ) {
1530
+ base.WebApiBase.HandleError(options, config, err);
1531
+ reject(err);
1532
+ }
1533
+ });
1534
+ }
1535
+
1536
+
1537
+ /**
1538
+ * This method will get the host name for CS
1539
+ * @returns Will get the host name for where CS is installed
1540
+ */
1541
+ public async getCsCgiUrlInternalAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
1542
+ {
1543
+ return this._getCsCgiUrlInternalAsync(webapi_options);
1544
+ }
1545
+
1546
+
1547
+ private async _getCRMUrlAsync(request: carriers.Configuration_GetCRMUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
1548
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1549
+ base.WebApiBase.SetPending(options);
1550
+ return new Promise< string >(async (resolve, reject) => {
1551
+ try {
1552
+ config.baseURL = this._options.baseUrl;
1553
+ const response = await this._axios.post("GetCRMUrl", request , config);
1554
+ base.WebApiBase.SetCompleted(options);
1555
+ const res : string = response.data as string;
1556
+ resolve(res);
1557
+ }
1558
+ catch( err ) {
1559
+ base.WebApiBase.HandleError(options, config, err);
1560
+ reject(err);
1561
+ }
1562
+ });
1563
+ }
1564
+
1565
+
1566
+
1567
+ /**
1568
+ * Returns a valid url based in the soprotocol provided
1569
+ * @param request - SoProtocol, Currents, Frameless
1570
+ * @returns Url with soprotocol
1571
+ */
1572
+ public async getCRMUrlAsync(request: carriers.Configuration_GetCRMUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1573
+
1574
+ /**
1575
+ * Returns a valid url based in the soprotocol provided
1576
+ * @param soProtocol - SoProtocol to display. Eg. contact.activityarchive.minipreview
1577
+ * @param currents - currents to set. Eg. contact_id=100&person_id=299
1578
+ * @param frameless - If true frame is not rendered( Navigationbar, buttonbar and menu )
1579
+ * @returns Url with soprotocol
1580
+ */
1581
+ public async getCRMUrlAsync(soProtocol: string, currents: string, frameless: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
1582
+
1583
+ public async getCRMUrlAsync(soProtocol:string|carriers.Configuration_GetCRMUrlRequest, currents?:string|base.WebApiRequestOptions, frameless?:boolean, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
1584
+ let _request : carriers.Configuration_GetCRMUrlRequest = null;
1585
+ let _options : base.WebApiRequestOptions = null;
1586
+ const first : any = soProtocol;
1587
+ if( typeof( first ) === "object" && first && ( typeof(first.soProtocol)!='undefined' || typeof(first.currents)!='undefined' || typeof(first.frameless)!='undefined' ) )
1588
+ {
1589
+ _request = soProtocol as carriers.Configuration_GetCRMUrlRequest;
1590
+ _options = currents as base.WebApiRequestOptions;
1591
+ }
1592
+ else
1593
+ {
1594
+ _request = {
1595
+ soProtocol: soProtocol as string,
1596
+ currents: currents as string,
1597
+ frameless: frameless as boolean,
1598
+ };
1599
+ _options = webapi_options;
1600
+ }
1601
+ return this._getCRMUrlAsync( _request, _options );
1602
+ }
1603
+
1604
+
1605
+ private async _getEmailNumberOfDaysAsync( options?:base.WebApiRequestOptions) : Promise< number > {
1606
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1607
+ base.WebApiBase.SetPending(options);
1608
+ return new Promise< number >(async (resolve, reject) => {
1609
+ try {
1610
+ config.baseURL = this._options.baseUrl;
1611
+ const response = await this._axios.post("GetEmailNumberOfDays", undefined , config);
1612
+ base.WebApiBase.SetCompleted(options);
1613
+ const res : number = response.data as number;
1614
+ resolve(res);
1615
+ }
1616
+ catch( err ) {
1617
+ base.WebApiBase.HandleError(options, config, err);
1618
+ reject(err);
1619
+ }
1620
+ });
1621
+ }
1622
+
1623
+
1624
+ /**
1625
+ *
1626
+ * @returns Number of days in the past for which we are fetching email
1627
+ */
1628
+ public async getEmailNumberOfDaysAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >
1629
+ {
1630
+ return this._getEmailNumberOfDaysAsync(webapi_options);
1631
+ }
1632
+
1633
+
1634
+ private async _getCustomerUrlAsync( options?:base.WebApiRequestOptions) : Promise< string > {
1635
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1636
+ base.WebApiBase.SetPending(options);
1637
+ return new Promise< string >(async (resolve, reject) => {
1638
+ try {
1639
+ config.baseURL = this._options.baseUrl;
1640
+ const response = await this._axios.post("GetCustomerUrl", undefined , config);
1641
+ base.WebApiBase.SetCompleted(options);
1642
+ const res : string = response.data as string;
1643
+ resolve(res);
1644
+ }
1645
+ catch( err ) {
1646
+ base.WebApiBase.HandleError(options, config, err);
1647
+ reject(err);
1648
+ }
1649
+ });
1650
+ }
1651
+
1652
+
1653
+ /**
1654
+ * This method will get the URL for the external access to the customer center
1655
+ * @returns The URL to the customer center, without any actions
1656
+ */
1657
+ public async getCustomerUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
1658
+ {
1659
+ return this._getCustomerUrlAsync(webapi_options);
1660
+ }
1661
+
1662
+
1663
+ private async _getSpfDomainAsync( options?:base.WebApiRequestOptions) : Promise< string > {
1664
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1665
+ base.WebApiBase.SetPending(options);
1666
+ return new Promise< string >(async (resolve, reject) => {
1667
+ try {
1668
+ config.baseURL = this._options.baseUrl;
1669
+ const response = await this._axios.post("GetSpfDomain", undefined , config);
1670
+ base.WebApiBase.SetCompleted(options);
1671
+ const res : string = response.data as string;
1672
+ resolve(res);
1673
+ }
1674
+ catch( err ) {
1675
+ base.WebApiBase.HandleError(options, config, err);
1676
+ reject(err);
1677
+ }
1678
+ });
1679
+ }
1680
+
1681
+
1682
+ /**
1683
+ * Get the SPF domain defined for the mail cluster for this tenant (Online only)
1684
+ * @returns The configured SPF domain. Will return empty for Onsite installations or tenants in Online using custom SMTP
1685
+ */
1686
+ public async getSpfDomainAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
1687
+ {
1688
+ return this._getSpfDomainAsync(webapi_options);
1689
+ }
1690
+
1691
+ /*
1692
+ * Gets a DiaryViewEntity object.
1693
+ * @param diaryViewEntityId - The primary key.
1694
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
1695
+ * @returns A single DiaryViewEntity
1696
+ */
1697
+ public async getDiaryViewEntityAsync(diaryViewEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.DiaryViewEntity > {
1698
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1699
+ base.WebApiBase.SetPending(options);
1700
+ return new Promise< carriers.DiaryViewEntity >(async (resolve, reject) => {
1701
+ try {
1702
+ const response = await this._axios.post("GetDiaryViewEntity?diaryViewEntityId=" + diaryViewEntityId, null, config);
1703
+ base.WebApiBase.SetCompleted(options);
1704
+ const res = converters.Create_DiaryViewEntity_From( response.data );
1705
+ resolve(res);
1706
+ }
1707
+ catch( err ) {
1708
+ base.WebApiBase.HandleError(options, config, err);
1709
+ reject(err);
1710
+ }
1711
+ });
1712
+ }
1713
+
1714
+ /*
1715
+ * Gets a SystemEventEntity object.
1716
+ * @param systemEventEntityId - The primary key.
1717
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
1718
+ * @returns A single SystemEventEntity
1719
+ */
1720
+ public async getSystemEventEntityAsync(systemEventEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.SystemEventEntity > {
1721
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1722
+ base.WebApiBase.SetPending(options);
1723
+ return new Promise< carriers.SystemEventEntity >(async (resolve, reject) => {
1724
+ try {
1725
+ const response = await this._axios.post("GetSystemEventEntity?systemEventEntityId=" + systemEventEntityId, null, config);
1726
+ base.WebApiBase.SetCompleted(options);
1727
+ const res = converters.Create_SystemEventEntity_From( response.data );
1728
+ resolve(res);
1729
+ }
1730
+ catch( err ) {
1731
+ base.WebApiBase.HandleError(options, config, err);
1732
+ reject(err);
1733
+ }
1734
+ });
1735
+ }
1736
+
1737
+
1738
+ private async _existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, options?:base.WebApiRequestOptions) : Promise< boolean > {
1739
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1740
+ base.WebApiBase.SetPending(options);
1741
+ return new Promise< boolean >(async (resolve, reject) => {
1742
+ try {
1743
+ config.baseURL = this._options.baseUrl;
1744
+ const response = await this._axios.post("ExistsSystemEvent", request , config);
1745
+ base.WebApiBase.SetCompleted(options);
1746
+ const res : boolean = response.data as boolean;
1747
+ resolve(res);
1748
+ }
1749
+ catch( err ) {
1750
+ base.WebApiBase.HandleError(options, config, err);
1751
+ reject(err);
1752
+ }
1753
+ });
1754
+ }
1755
+
1756
+
1757
+
1758
+ /**
1759
+ * Is there a system event with the given key?
1760
+ * @param request - Key
1761
+ * @returns The system event
1762
+ */
1763
+ public async existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
1764
+
1765
+ /**
1766
+ * Is there a system event with the given key?
1767
+ * @param key - The key to match on
1768
+ * @returns The system event
1769
+ */
1770
+ public async existsSystemEventAsync(key: string, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
1771
+
1772
+ public async existsSystemEventAsync(key:string|carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean > {
1773
+ let _request : carriers.Configuration_ExistsSystemEventRequest = null;
1774
+ let _options : base.WebApiRequestOptions = null;
1775
+ const first : any = key;
1776
+ if( typeof( first ) === "object" && first && ( typeof(first.key)!='undefined' ) )
1777
+ {
1778
+ _request = key as carriers.Configuration_ExistsSystemEventRequest;
1779
+ _options = webapi_options as base.WebApiRequestOptions;
1780
+ }
1781
+ else
1782
+ {
1783
+ _request = {
1784
+ key: key as string,
1785
+ };
1786
+ _options = webapi_options;
1787
+ }
1788
+ return this._existsSystemEventAsync( _request, _options );
1789
+ }
1790
+
1791
+ /*
1792
+ * Gets a WindowPosSize object.
1793
+ * @param windowPosSizeId - The primary key.
1794
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
1795
+ * @returns A single WindowPosSize
1796
+ */
1797
+ public async getWindowPosSizeAsync(windowPosSizeId: number, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize > {
1798
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1799
+ base.WebApiBase.SetPending(options);
1800
+ return new Promise< carriers.WindowPosSize >(async (resolve, reject) => {
1801
+ try {
1802
+ const response = await this._axios.post("GetWindowPosSize?windowPosSizeId=" + windowPosSizeId, null, config);
1803
+ base.WebApiBase.SetCompleted(options);
1804
+ const res = converters.Create_WindowPosSize_From( response.data );
1805
+ resolve(res);
1806
+ }
1807
+ catch( err ) {
1808
+ base.WebApiBase.HandleError(options, config, err);
1809
+ reject(err);
1810
+ }
1811
+ });
1812
+ }
1813
+
1814
+
1815
+ private async _saveWindowPosSizeAsync(request: carriers.Configuration_SaveWindowPosSizeRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize > {
1816
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1817
+ base.WebApiBase.SetPending(options);
1818
+ return new Promise< carriers.WindowPosSize >(async (resolve, reject) => {
1819
+ try {
1820
+ config.baseURL = this._options.baseUrl;
1821
+ const response = await this._axios.post("SaveWindowPosSize", request , config);
1822
+ base.WebApiBase.SetCompleted(options);
1823
+ const res : carriers.WindowPosSize = converters.Create_WindowPosSize_From( response.data );
1824
+ resolve(res);
1825
+ }
1826
+ catch( err ) {
1827
+ base.WebApiBase.HandleError(options, config, err);
1828
+ reject(err);
1829
+ }
1830
+ });
1831
+ }
1832
+
1833
+
1834
+
1835
+ /**
1836
+ * Saves a window and dialog position and size setting.
1837
+ * @param request - WindowPosSize
1838
+ * @returns The saved item
1839
+ */
1840
+ public async saveWindowPosSizeAsync(request: carriers.Configuration_SaveWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize >;
1841
+
1842
+ /**
1843
+ * Saves a window and dialog position and size setting.
1844
+ * @param windowPosSize - The item that is saved
1845
+ * @returns The saved item
1846
+ */
1847
+ public async saveWindowPosSizeAsync(windowPosSize: carriers.WindowPosSize, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize >;
1848
+
1849
+ public async saveWindowPosSizeAsync(windowPosSize:carriers.WindowPosSize|carriers.Configuration_SaveWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize > {
1850
+ let _request : carriers.Configuration_SaveWindowPosSizeRequest = null;
1851
+ let _options : base.WebApiRequestOptions = null;
1852
+ const first : any = windowPosSize;
1853
+ if( typeof( first ) === "object" && first && ( typeof(first.windowPosSize)!='undefined' ) )
1854
+ {
1855
+ _request = windowPosSize as carriers.Configuration_SaveWindowPosSizeRequest;
1856
+ _options = webapi_options as base.WebApiRequestOptions;
1857
+ }
1858
+ else
1859
+ {
1860
+ _request = {
1861
+ windowPosSize: windowPosSize as carriers.WindowPosSize,
1862
+ };
1863
+ _options = webapi_options;
1864
+ }
1865
+ return this._saveWindowPosSizeAsync( _request, _options );
1866
+ }
1867
+
1868
+
1869
+ private async _deleteWindowPosSizeAsync(request: carriers.Configuration_DeleteWindowPosSizeRequest, options?:base.WebApiRequestOptions) : Promise< void > {
1870
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1871
+ base.WebApiBase.SetPending(options);
1872
+ return new Promise< void >(async (resolve, reject) => {
1873
+ try {
1874
+ config.baseURL = this._options.baseUrl;
1875
+ const response = await this._axios.post("DeleteWindowPosSize", request , config);
1876
+ base.WebApiBase.SetCompleted(options);
1877
+ const res = response.data;
1878
+ resolve(res);
1879
+ }
1880
+ catch( err ) {
1881
+ base.WebApiBase.HandleError(options, config, err);
1882
+ reject(err);
1883
+ }
1884
+ });
1885
+ }
1886
+
1887
+
1888
+
1889
+ /**
1890
+ * Deletes a window and dialog position and size setting.
1891
+ * @param request - WindowPosSizeId
1892
+ * @returns
1893
+ */
1894
+ public async deleteWindowPosSizeAsync(request: carriers.Configuration_DeleteWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
1895
+
1896
+ /**
1897
+ * Deletes a window and dialog position and size setting.
1898
+ * @param windowPosSizeId - Id of the window and dialog position and size settings item.
1899
+ * @returns
1900
+ */
1901
+ public async deleteWindowPosSizeAsync(windowPosSizeId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
1902
+
1903
+ public async deleteWindowPosSizeAsync(windowPosSizeId:number|carriers.Configuration_DeleteWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
1904
+ let _request : carriers.Configuration_DeleteWindowPosSizeRequest = null;
1905
+ let _options : base.WebApiRequestOptions = null;
1906
+ const first : any = windowPosSizeId;
1907
+ if( typeof( first ) === "object" && first && ( typeof(first.windowPosSizeId)!='undefined' ) )
1908
+ {
1909
+ _request = windowPosSizeId as carriers.Configuration_DeleteWindowPosSizeRequest;
1910
+ _options = webapi_options as base.WebApiRequestOptions;
1911
+ }
1912
+ else
1913
+ {
1914
+ _request = {
1915
+ windowPosSizeId: windowPosSizeId as number,
1916
+ };
1917
+ _options = webapi_options;
1918
+ }
1919
+ return this._deleteWindowPosSizeAsync( _request, _options );
1920
+ }
1921
+
1922
+ /*
1923
+ * Gets an array of WindowPosSize objects.
1924
+ * @param windowPosSizeIds - The primary keys.
1925
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
1926
+ * @returns An array of WindowPosSize
1927
+ */
1928
+ public async getWindowPosSizeListAsync(windowPosSizeIds: number[], options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
1929
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1930
+ base.WebApiBase.SetPending(options);
1931
+ return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
1932
+ try {
1933
+ const response = await this._axios.post("GetWindowPosSizeList", windowPosSizeIds, config);
1934
+ base.WebApiBase.SetCompleted(options);
1935
+ const res = converters.Create_WindowPosSizeArray_From( response.data );
1936
+ resolve(res);
1937
+ }
1938
+ catch( err ) {
1939
+ base.WebApiBase.HandleError(options, config, err);
1940
+ reject(err);
1941
+ }
1942
+ });
1943
+ }
1944
+
1945
+
1946
+ private async _getMyWindowPosSizesAsync( options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
1947
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1948
+ base.WebApiBase.SetPending(options);
1949
+ return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
1950
+ try {
1951
+ config.baseURL = this._options.baseUrl;
1952
+ const response = await this._axios.post("GetMyWindowPosSizes", undefined , config);
1953
+ base.WebApiBase.SetCompleted(options);
1954
+ const res : carriers.WindowPosSize[] = converters.Create_WindowPosSizeArray_From( response.data );
1955
+ resolve(res);
1956
+ }
1957
+ catch( err ) {
1958
+ base.WebApiBase.HandleError(options, config, err);
1959
+ reject(err);
1960
+ }
1961
+ });
1962
+ }
1963
+
1964
+
1965
+ /**
1966
+ * Gets the window and dialog position and size settings belonging to the currently logged on user
1967
+ * @returns Array of window and dialog position and size settings
1968
+ */
1969
+ public async getMyWindowPosSizesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >
1970
+ {
1971
+ return this._getMyWindowPosSizesAsync(webapi_options);
1972
+ }
1973
+
1974
+
1975
+ private async _getWindowPosSizesOnPersonIdAsync(request: carriers.Configuration_GetWindowPosSizesOnPersonIdRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
1976
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1977
+ base.WebApiBase.SetPending(options);
1978
+ return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
1979
+ try {
1980
+ config.baseURL = this._options.baseUrl;
1981
+ const response = await this._axios.post("GetWindowPosSizesOnPersonId", request , config);
1982
+ base.WebApiBase.SetCompleted(options);
1983
+ const res : carriers.WindowPosSize[] = converters.Create_WindowPosSizeArray_From( response.data );
1984
+ resolve(res);
1985
+ }
1986
+ catch( err ) {
1987
+ base.WebApiBase.HandleError(options, config, err);
1988
+ reject(err);
1989
+ }
1990
+ });
1991
+ }
1992
+
1993
+
1994
+
1995
+ /**
1996
+ * Gets the window and dialog position and size settings belonging to the specified person
1997
+ * @param request - PersonId
1998
+ * @returns Array of window and dialog position and size settings
1999
+ */
2000
+ public async getWindowPosSizesOnPersonIdAsync(request: carriers.Configuration_GetWindowPosSizesOnPersonIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
2001
+
2002
+ /**
2003
+ * Gets the window and dialog position and size settings belonging to the specified person
2004
+ * @param personId - Person id of the associate owning these window settings
2005
+ * @returns Array of window and dialog position and size settings
2006
+ */
2007
+ public async getWindowPosSizesOnPersonIdAsync(personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
2008
+
2009
+ public async getWindowPosSizesOnPersonIdAsync(personId:number|carriers.Configuration_GetWindowPosSizesOnPersonIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
2010
+ let _request : carriers.Configuration_GetWindowPosSizesOnPersonIdRequest = null;
2011
+ let _options : base.WebApiRequestOptions = null;
2012
+ const first : any = personId;
2013
+ if( typeof( first ) === "object" && first && ( typeof(first.personId)!='undefined' ) )
2014
+ {
2015
+ _request = personId as carriers.Configuration_GetWindowPosSizesOnPersonIdRequest;
2016
+ _options = webapi_options as base.WebApiRequestOptions;
2017
+ }
2018
+ else
2019
+ {
2020
+ _request = {
2021
+ personId: personId as number,
2022
+ };
2023
+ _options = webapi_options;
2024
+ }
2025
+ return this._getWindowPosSizesOnPersonIdAsync( _request, _options );
2026
+ }
2027
+
2028
+
2029
+ private async _getWindowPosSizesOnAssociateIdAsync(request: carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
2030
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
2031
+ base.WebApiBase.SetPending(options);
2032
+ return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
2033
+ try {
2034
+ config.baseURL = this._options.baseUrl;
2035
+ const response = await this._axios.post("GetWindowPosSizesOnAssociateId", request , config);
2036
+ base.WebApiBase.SetCompleted(options);
2037
+ const res : carriers.WindowPosSize[] = converters.Create_WindowPosSizeArray_From( response.data );
2038
+ resolve(res);
2039
+ }
2040
+ catch( err ) {
2041
+ base.WebApiBase.HandleError(options, config, err);
2042
+ reject(err);
2043
+ }
2044
+ });
2045
+ }
2046
+
2047
+
2048
+
2049
+ /**
2050
+ * Gets the window and dialog position and size settings belonging to the specified associate
2051
+ * @param request - AssociateId
2052
+ * @returns Array of window and dialog position and size settings
2053
+ */
2054
+ public async getWindowPosSizesOnAssociateIdAsync(request: carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
2055
+
2056
+ /**
2057
+ * Gets the window and dialog position and size settings belonging to the specified associate
2058
+ * @param associateId - Associate id of the Associate/Person owning these window settings
2059
+ * @returns Array of window and dialog position and size settings
2060
+ */
2061
+ public async getWindowPosSizesOnAssociateIdAsync(associateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
2062
+
2063
+ public async getWindowPosSizesOnAssociateIdAsync(associateId:number|carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
2064
+ let _request : carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest = null;
2065
+ let _options : base.WebApiRequestOptions = null;
2066
+ const first : any = associateId;
2067
+ if( typeof( first ) === "object" && first && ( typeof(first.associateId)!='undefined' ) )
2068
+ {
2069
+ _request = associateId as carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest;
2070
+ _options = webapi_options as base.WebApiRequestOptions;
2071
+ }
2072
+ else
2073
+ {
2074
+ _request = {
2075
+ associateId: associateId as number,
2076
+ };
2077
+ _options = webapi_options;
2078
+ }
2079
+ return this._getWindowPosSizesOnAssociateIdAsync( _request, _options );
2080
+ }
2081
+
2082
+
2083
+ private async _saveWindowPosSizesAsync(request: carriers.Configuration_SaveWindowPosSizesRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
2084
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
2085
+ base.WebApiBase.SetPending(options);
2086
+ return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
2087
+ try {
2088
+ config.baseURL = this._options.baseUrl;
2089
+ const response = await this._axios.post("SaveWindowPosSizes", request , config);
2090
+ base.WebApiBase.SetCompleted(options);
2091
+ const res : carriers.WindowPosSize[] = converters.Create_WindowPosSizeArray_From( response.data );
2092
+ resolve(res);
2093
+ }
2094
+ catch( err ) {
2095
+ base.WebApiBase.HandleError(options, config, err);
2096
+ reject(err);
2097
+ }
2098
+ });
2099
+ }
2100
+
2101
+
2102
+
2103
+ /**
2104
+ * Saves a set of window and dialog position and size settings.
2105
+ * @param request - WindowPosSizes
2106
+ * @returns The saved items
2107
+ */
2108
+ public async saveWindowPosSizesAsync(request: carriers.Configuration_SaveWindowPosSizesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
2109
+
2110
+ /**
2111
+ * Saves a set of window and dialog position and size settings.
2112
+ * @param windowPosSizes - The items that are saved
2113
+ * @returns The saved items
2114
+ */
2115
+ public async saveWindowPosSizesAsync(windowPosSizes: carriers.WindowPosSize[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
2116
+
2117
+ public async saveWindowPosSizesAsync(windowPosSizes:carriers.WindowPosSize[]|carriers.Configuration_SaveWindowPosSizesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
2118
+ let _request : carriers.Configuration_SaveWindowPosSizesRequest = null;
2119
+ let _options : base.WebApiRequestOptions = null;
2120
+ const first : any = windowPosSizes;
2121
+ if( typeof( first ) === "object" && first && ( typeof(first.windowPosSizes)!='undefined' ) )
2122
+ {
2123
+ _request = windowPosSizes as carriers.Configuration_SaveWindowPosSizesRequest;
2124
+ _options = webapi_options as base.WebApiRequestOptions;
2125
+ }
2126
+ else
2127
+ {
2128
+ _request = {
2129
+ windowPosSizes: windowPosSizes as carriers.WindowPosSize[],
2130
+ };
2131
+ _options = webapi_options;
2132
+ }
2133
+ return this._saveWindowPosSizesAsync( _request, _options );
2134
+ }
2135
+
2136
+ } // class v1ConfigurationAgentController
2137
+
2138
+