@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,1424 @@
1
+ // <auto-generated>
2
+ // SuperOffice Code Generator
3
+ // modelling\templates\servicestswebapi\tswebapiagents.tt
4
+ // </auto-generated>
5
+ import * as base from './WebApiBase.js';
6
+ import * as converters from './Converters.js';
7
+ /**
8
+ * User interface configuration - XMLs and other elements such as inter-client URLs
9
+ */
10
+ export class ConfigurationAgent extends base.WebApiBase {
11
+ constructor(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode) {
12
+ const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
13
+ options.basePath = "v1/Agents/Configuration/";
14
+ super(options);
15
+ }
16
+ /**
17
+ * Set default values into a new ConfigurableScreenDelta.
18
+ * NetServer calculates default values on the entity, which is required when creating/storing a new instance
19
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
20
+ * @returns A blank entity.
21
+ */
22
+ async createDefaultConfigurableScreenDeltaAsync(options) {
23
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
24
+ base.WebApiBase.SetPending(options);
25
+ return new Promise(async (resolve, reject) => {
26
+ try {
27
+ const response = await this._axios.post("CreateDefaultConfigurableScreenDelta", null, config);
28
+ base.WebApiBase.SetCompleted(options);
29
+ const res = converters.Create_ConfigurableScreenDelta_From(response.data);
30
+ resolve(res);
31
+ }
32
+ catch (err) {
33
+ base.WebApiBase.HandleError(options, config, err);
34
+ reject(err);
35
+ }
36
+ });
37
+ }
38
+ /*
39
+ * Replace the existing ConfigurableScreenDelta or creates a new ConfigurableScreenDelta if the id parameter is empty
40
+ * @param entity - The ConfigurableScreenDelta to be saved.
41
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
42
+ * @returns New or updated ConfigurableScreenDelta
43
+ */
44
+ async saveConfigurableScreenDeltaAsync(entity, options) {
45
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
46
+ base.WebApiBase.SetPending(options);
47
+ return new Promise(async (resolve, reject) => {
48
+ try {
49
+ const response = await this._axios.post("SaveConfigurableScreenDelta", entity, config);
50
+ base.WebApiBase.SetCompleted(options);
51
+ const res = converters.Create_ConfigurableScreenDelta_From(response.data);
52
+ resolve(res);
53
+ }
54
+ catch (err) {
55
+ base.WebApiBase.HandleError(options, config, err);
56
+ reject(err);
57
+ }
58
+ });
59
+ }
60
+ /*
61
+ * Deletes the ConfigurableScreenDelta
62
+ * @param ConfigurableScreenDeltaId - The id of the ConfigurableScreenDelta to be deleted.
63
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
64
+ */
65
+ async deleteConfigurableScreenDeltaAsync(ConfigurableScreenDeltaId, options) {
66
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
67
+ base.WebApiBase.SetPending(options);
68
+ return new Promise(async (resolve, reject) => {
69
+ try {
70
+ const response = await this._axios.post("DeleteConfigurableScreenDelta?ConfigurableScreenDeltaId=" + ConfigurableScreenDeltaId, null, config);
71
+ base.WebApiBase.SetCompleted(options);
72
+ const res = response.data;
73
+ resolve(res);
74
+ }
75
+ catch (err) {
76
+ base.WebApiBase.HandleError(options, config, err);
77
+ reject(err);
78
+ }
79
+ });
80
+ }
81
+ /**
82
+ * Set default values into a new DiaryViewEntity.
83
+ * NetServer calculates default values on the entity, which is required when creating/storing a new instance
84
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
85
+ * @returns A blank entity.
86
+ */
87
+ async createDefaultDiaryViewEntityAsync(options) {
88
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
89
+ base.WebApiBase.SetPending(options);
90
+ return new Promise(async (resolve, reject) => {
91
+ try {
92
+ const response = await this._axios.post("CreateDefaultDiaryViewEntity", null, config);
93
+ base.WebApiBase.SetCompleted(options);
94
+ const res = converters.Create_DiaryViewEntity_From(response.data);
95
+ resolve(res);
96
+ }
97
+ catch (err) {
98
+ base.WebApiBase.HandleError(options, config, err);
99
+ reject(err);
100
+ }
101
+ });
102
+ }
103
+ /*
104
+ * Replace the existing DiaryViewEntity or creates a new DiaryViewEntity if the id parameter is empty
105
+ * @param entity - The DiaryViewEntity to be saved.
106
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
107
+ * @returns New or updated DiaryViewEntity
108
+ */
109
+ async saveDiaryViewEntityAsync(entity, options) {
110
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
111
+ base.WebApiBase.SetPending(options);
112
+ return new Promise(async (resolve, reject) => {
113
+ try {
114
+ const response = await this._axios.post("SaveDiaryViewEntity", entity, config);
115
+ base.WebApiBase.SetCompleted(options);
116
+ const res = converters.Create_DiaryViewEntity_From(response.data);
117
+ resolve(res);
118
+ }
119
+ catch (err) {
120
+ base.WebApiBase.HandleError(options, config, err);
121
+ reject(err);
122
+ }
123
+ });
124
+ }
125
+ /*
126
+ * Deletes the DiaryViewEntity
127
+ * @param DiaryViewEntityId - The id of the DiaryViewEntity to be deleted.
128
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
129
+ */
130
+ async deleteDiaryViewEntityAsync(DiaryViewEntityId, options) {
131
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
132
+ base.WebApiBase.SetPending(options);
133
+ return new Promise(async (resolve, reject) => {
134
+ try {
135
+ const response = await this._axios.post("DeleteDiaryViewEntity?DiaryViewEntityId=" + DiaryViewEntityId, null, config);
136
+ base.WebApiBase.SetCompleted(options);
137
+ const res = response.data;
138
+ resolve(res);
139
+ }
140
+ catch (err) {
141
+ base.WebApiBase.HandleError(options, config, err);
142
+ reject(err);
143
+ }
144
+ });
145
+ }
146
+ /**
147
+ * Set default values into a new SystemEventEntity.
148
+ * NetServer calculates default values on the entity, which is required when creating/storing a new instance
149
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
150
+ * @returns A blank entity.
151
+ */
152
+ async createDefaultSystemEventEntityAsync(options) {
153
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
154
+ base.WebApiBase.SetPending(options);
155
+ return new Promise(async (resolve, reject) => {
156
+ try {
157
+ const response = await this._axios.post("CreateDefaultSystemEventEntity", null, config);
158
+ base.WebApiBase.SetCompleted(options);
159
+ const res = converters.Create_SystemEventEntity_From(response.data);
160
+ resolve(res);
161
+ }
162
+ catch (err) {
163
+ base.WebApiBase.HandleError(options, config, err);
164
+ reject(err);
165
+ }
166
+ });
167
+ }
168
+ /*
169
+ * Replace the existing SystemEventEntity or creates a new SystemEventEntity if the id parameter is empty
170
+ * @param entity - The SystemEventEntity to be saved.
171
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
172
+ * @returns New or updated SystemEventEntity
173
+ */
174
+ async saveSystemEventEntityAsync(entity, options) {
175
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
176
+ base.WebApiBase.SetPending(options);
177
+ return new Promise(async (resolve, reject) => {
178
+ try {
179
+ const response = await this._axios.post("SaveSystemEventEntity", entity, config);
180
+ base.WebApiBase.SetCompleted(options);
181
+ const res = converters.Create_SystemEventEntity_From(response.data);
182
+ resolve(res);
183
+ }
184
+ catch (err) {
185
+ base.WebApiBase.HandleError(options, config, err);
186
+ reject(err);
187
+ }
188
+ });
189
+ }
190
+ /*
191
+ * Deletes the SystemEventEntity
192
+ * @param SystemEventEntityId - The id of the SystemEventEntity to be deleted.
193
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
194
+ */
195
+ async deleteSystemEventEntityAsync(SystemEventEntityId, options) {
196
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
197
+ base.WebApiBase.SetPending(options);
198
+ return new Promise(async (resolve, reject) => {
199
+ try {
200
+ const response = await this._axios.post("DeleteSystemEventEntity?SystemEventEntityId=" + SystemEventEntityId, null, config);
201
+ base.WebApiBase.SetCompleted(options);
202
+ const res = response.data;
203
+ resolve(res);
204
+ }
205
+ catch (err) {
206
+ base.WebApiBase.HandleError(options, config, err);
207
+ reject(err);
208
+ }
209
+ });
210
+ }
211
+ /*
212
+ * Gets a ConfigurableScreenDelta object.
213
+ * @param configurableScreenDeltaId - The primary key.
214
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
215
+ * @returns A single ConfigurableScreenDelta
216
+ */
217
+ async getConfigurableScreenDeltaAsync(configurableScreenDeltaId, options) {
218
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
219
+ base.WebApiBase.SetPending(options);
220
+ return new Promise(async (resolve, reject) => {
221
+ try {
222
+ const response = await this._axios.post("GetConfigurableScreenDelta?configurableScreenDeltaId=" + configurableScreenDeltaId, null, config);
223
+ base.WebApiBase.SetCompleted(options);
224
+ const res = converters.Create_ConfigurableScreenDelta_From(response.data);
225
+ resolve(res);
226
+ }
227
+ catch (err) {
228
+ base.WebApiBase.HandleError(options, config, err);
229
+ reject(err);
230
+ }
231
+ });
232
+ }
233
+ async _getScreenConfigurationDeltasAsync(options) {
234
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
235
+ base.WebApiBase.SetPending(options);
236
+ return new Promise(async (resolve, reject) => {
237
+ try {
238
+ config.baseURL = this._options.baseUrl;
239
+ const response = await this._axios.post("GetScreenConfigurationDeltas", undefined, config);
240
+ base.WebApiBase.SetCompleted(options);
241
+ const res = response.data;
242
+ resolve(res);
243
+ }
244
+ catch (err) {
245
+ base.WebApiBase.HandleError(options, config, err);
246
+ reject(err);
247
+ }
248
+ });
249
+ }
250
+ /**
251
+ * This method will return a json with all deltas for screen
252
+ * @returns A string with all recipe deltas in json for logged in associate
253
+ */
254
+ async getScreenConfigurationDeltasAsync(webapi_options) {
255
+ return this._getScreenConfigurationDeltasAsync(webapi_options);
256
+ }
257
+ async _getScreenConfigurationDeltaAsync(request, options) {
258
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
259
+ base.WebApiBase.SetPending(options);
260
+ return new Promise(async (resolve, reject) => {
261
+ try {
262
+ config.baseURL = this._options.baseUrl;
263
+ const response = await this._axios.post("GetScreenConfigurationDelta", request, config);
264
+ base.WebApiBase.SetCompleted(options);
265
+ const res = response.data;
266
+ resolve(res);
267
+ }
268
+ catch (err) {
269
+ base.WebApiBase.HandleError(options, config, err);
270
+ reject(err);
271
+ }
272
+ });
273
+ }
274
+ async getScreenConfigurationDeltaAsync(deltaType, deltaState, webapi_options) {
275
+ let _request = null;
276
+ let _options = null;
277
+ const first = deltaType;
278
+ if (typeof (first) === "object" && first && (typeof (first.deltaType) != 'undefined' || typeof (first.deltaState) != 'undefined')) {
279
+ _request = deltaType;
280
+ _options = deltaState;
281
+ }
282
+ else {
283
+ _request = {
284
+ deltaType: deltaType,
285
+ deltaState: deltaState,
286
+ };
287
+ _options = webapi_options;
288
+ }
289
+ return this._getScreenConfigurationDeltaAsync(_request, _options);
290
+ }
291
+ async _getConfigurableScreenDeltasByDeltaAsync(request, options) {
292
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
293
+ base.WebApiBase.SetPending(options);
294
+ return new Promise(async (resolve, reject) => {
295
+ try {
296
+ config.baseURL = this._options.baseUrl;
297
+ const response = await this._axios.post("GetConfigurableScreenDeltasByDelta", request, config);
298
+ base.WebApiBase.SetCompleted(options);
299
+ const res = converters.Create_ConfigurableScreenDeltaArray_From(response.data);
300
+ resolve(res);
301
+ }
302
+ catch (err) {
303
+ base.WebApiBase.HandleError(options, config, err);
304
+ reject(err);
305
+ }
306
+ });
307
+ }
308
+ async getConfigurableScreenDeltasByDeltaAsync(configurableScreenDelta, webapi_options) {
309
+ let _request = null;
310
+ let _options = null;
311
+ const first = configurableScreenDelta;
312
+ if (typeof (first) === "object" && first && (typeof (first.configurableScreenDelta) != 'undefined')) {
313
+ _request = configurableScreenDelta;
314
+ _options = webapi_options;
315
+ }
316
+ else {
317
+ _request = {
318
+ configurableScreenDelta: configurableScreenDelta,
319
+ };
320
+ _options = webapi_options;
321
+ }
322
+ return this._getConfigurableScreenDeltasByDeltaAsync(_request, _options);
323
+ }
324
+ async _getConfigurableScreenDeltasByQueryAsync(request, options) {
325
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
326
+ base.WebApiBase.SetPending(options);
327
+ return new Promise(async (resolve, reject) => {
328
+ try {
329
+ config.baseURL = this._options.baseUrl;
330
+ const response = await this._axios.post("GetConfigurableScreenDeltasByQuery", request, config);
331
+ base.WebApiBase.SetCompleted(options);
332
+ const res = converters.Create_ConfigurableScreenDeltaArray_From(response.data);
333
+ resolve(res);
334
+ }
335
+ catch (err) {
336
+ base.WebApiBase.HandleError(options, config, err);
337
+ reject(err);
338
+ }
339
+ });
340
+ }
341
+ async getConfigurableScreenDeltasByQueryAsync(deltaQuery, webapi_options) {
342
+ let _request = null;
343
+ let _options = null;
344
+ const first = deltaQuery;
345
+ if (typeof (first) === "object" && first && (typeof (first.deltaQuery) != 'undefined')) {
346
+ _request = deltaQuery;
347
+ _options = webapi_options;
348
+ }
349
+ else {
350
+ _request = {
351
+ deltaQuery: deltaQuery,
352
+ };
353
+ _options = webapi_options;
354
+ }
355
+ return this._getConfigurableScreenDeltasByQueryAsync(_request, _options);
356
+ }
357
+ async _rebuildUdefDeltasAsync(options) {
358
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
359
+ base.WebApiBase.SetPending(options);
360
+ return new Promise(async (resolve, reject) => {
361
+ try {
362
+ config.baseURL = this._options.baseUrl;
363
+ const response = await this._axios.post("RebuildUdefDeltas", undefined, config);
364
+ base.WebApiBase.SetCompleted(options);
365
+ const res = response.data;
366
+ resolve(res);
367
+ }
368
+ catch (err) {
369
+ base.WebApiBase.HandleError(options, config, err);
370
+ reject(err);
371
+ }
372
+ });
373
+ }
374
+ /**
375
+ * Flush and rebuild userdefined field deltas. Mostly used after publishing udefs or adding/editing Customer Service extrafields
376
+ * @returns No return value
377
+ */
378
+ async rebuildUdefDeltasAsync(webapi_options) {
379
+ return this._rebuildUdefDeltasAsync(webapi_options);
380
+ }
381
+ async _rebuildWebpanelDeltasAsync(options) {
382
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
383
+ base.WebApiBase.SetPending(options);
384
+ return new Promise(async (resolve, reject) => {
385
+ try {
386
+ config.baseURL = this._options.baseUrl;
387
+ const response = await this._axios.post("RebuildWebpanelDeltas", undefined, config);
388
+ base.WebApiBase.SetCompleted(options);
389
+ const res = response.data;
390
+ resolve(res);
391
+ }
392
+ catch (err) {
393
+ base.WebApiBase.HandleError(options, config, err);
394
+ reject(err);
395
+ }
396
+ });
397
+ }
398
+ /**
399
+ * Flush and rebuild webpanel deltas. Mostly used after adding/editing webpanels or change group visibility of them
400
+ * @returns No return value
401
+ */
402
+ async rebuildWebpanelDeltasAsync(webapi_options) {
403
+ return this._rebuildWebpanelDeltasAsync(webapi_options);
404
+ }
405
+ async _saveAndPublishAsync(request, options) {
406
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
407
+ base.WebApiBase.SetPending(options);
408
+ return new Promise(async (resolve, reject) => {
409
+ try {
410
+ config.baseURL = this._options.baseUrl;
411
+ const response = await this._axios.post("SaveAndPublish", request, config);
412
+ base.WebApiBase.SetCompleted(options);
413
+ const res = converters.Create_ConfigurableScreenDelta_From(response.data);
414
+ resolve(res);
415
+ }
416
+ catch (err) {
417
+ base.WebApiBase.HandleError(options, config, err);
418
+ reject(err);
419
+ }
420
+ });
421
+ }
422
+ async saveAndPublishAsync(configurableScreenDelta, webapi_options) {
423
+ let _request = null;
424
+ let _options = null;
425
+ const first = configurableScreenDelta;
426
+ if (typeof (first) === "object" && first && (typeof (first.configurableScreenDelta) != 'undefined')) {
427
+ _request = configurableScreenDelta;
428
+ _options = webapi_options;
429
+ }
430
+ else {
431
+ _request = {
432
+ configurableScreenDelta: configurableScreenDelta,
433
+ };
434
+ _options = webapi_options;
435
+ }
436
+ return this._saveAndPublishAsync(_request, _options);
437
+ }
438
+ async _setAppliesToKeyAsync(request, options) {
439
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
440
+ base.WebApiBase.SetPending(options);
441
+ return new Promise(async (resolve, reject) => {
442
+ try {
443
+ config.baseURL = this._options.baseUrl;
444
+ const response = await this._axios.post("SetAppliesToKey", request, config);
445
+ base.WebApiBase.SetCompleted(options);
446
+ const res = response.data;
447
+ resolve(res);
448
+ }
449
+ catch (err) {
450
+ base.WebApiBase.HandleError(options, config, err);
451
+ reject(err);
452
+ }
453
+ });
454
+ }
455
+ async setAppliesToKeyAsync(recipeId, appliesToKey, webapi_options) {
456
+ let _request = null;
457
+ let _options = null;
458
+ const first = recipeId;
459
+ if (typeof (first) === "object" && first && (typeof (first.recipeId) != 'undefined' || typeof (first.appliesToKey) != 'undefined')) {
460
+ _request = recipeId;
461
+ _options = appliesToKey;
462
+ }
463
+ else {
464
+ _request = {
465
+ recipeId: recipeId,
466
+ appliesToKey: appliesToKey,
467
+ };
468
+ _options = webapi_options;
469
+ }
470
+ return this._setAppliesToKeyAsync(_request, _options);
471
+ }
472
+ async _getRecipeAppliesToMappingsAsync(options) {
473
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
474
+ base.WebApiBase.SetPending(options);
475
+ return new Promise(async (resolve, reject) => {
476
+ try {
477
+ config.baseURL = this._options.baseUrl;
478
+ const response = await this._axios.post("GetRecipeAppliesToMappings", undefined, config);
479
+ base.WebApiBase.SetCompleted(options);
480
+ const res = converters.Create_StringDictionary_From(response.data);
481
+ resolve(res);
482
+ }
483
+ catch (err) {
484
+ base.WebApiBase.HandleError(options, config, err);
485
+ reject(err);
486
+ }
487
+ });
488
+ }
489
+ /**
490
+ * Return the a dictionary with recipeId as key, and chosen appliesTo for that recipe, Like projecttype for projectcardrecipe
491
+ * @returns Mapping of recipeId and selected appliesToKey
492
+ */
493
+ async getRecipeAppliesToMappingsAsync(webapi_options) {
494
+ return this._getRecipeAppliesToMappingsAsync(webapi_options);
495
+ }
496
+ async _getApplicationConfigurationAsync(request, options) {
497
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
498
+ base.WebApiBase.SetPending(options);
499
+ return new Promise(async (resolve, reject) => {
500
+ try {
501
+ config.baseURL = this._options.baseUrl;
502
+ const response = await this._axios.post("GetApplicationConfiguration", request, config);
503
+ base.WebApiBase.SetCompleted(options);
504
+ const res = response.data;
505
+ resolve(res);
506
+ }
507
+ catch (err) {
508
+ base.WebApiBase.HandleError(options, config, err);
509
+ reject(err);
510
+ }
511
+ });
512
+ }
513
+ async getApplicationConfigurationAsync(application, instance, webapi_options) {
514
+ let _request = null;
515
+ let _options = null;
516
+ const first = application;
517
+ if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined')) {
518
+ _request = application;
519
+ _options = instance;
520
+ }
521
+ else {
522
+ _request = {
523
+ application: application,
524
+ instance: instance,
525
+ };
526
+ _options = webapi_options;
527
+ }
528
+ return this._getApplicationConfigurationAsync(_request, _options);
529
+ }
530
+ async _getPageConfigurationAsync(request, options) {
531
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
532
+ base.WebApiBase.SetPending(options);
533
+ return new Promise(async (resolve, reject) => {
534
+ try {
535
+ config.baseURL = this._options.baseUrl;
536
+ const response = await this._axios.post("GetPageConfiguration", request, config);
537
+ base.WebApiBase.SetCompleted(options);
538
+ const res = response.data;
539
+ resolve(res);
540
+ }
541
+ catch (err) {
542
+ base.WebApiBase.HandleError(options, config, err);
543
+ reject(err);
544
+ }
545
+ });
546
+ }
547
+ async getPageConfigurationAsync(application, instance, page, webapi_options) {
548
+ let _request = null;
549
+ let _options = null;
550
+ const first = application;
551
+ if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined' || typeof (first.page) != 'undefined')) {
552
+ _request = application;
553
+ _options = instance;
554
+ }
555
+ else {
556
+ _request = {
557
+ application: application,
558
+ instance: instance,
559
+ page: page,
560
+ };
561
+ _options = webapi_options;
562
+ }
563
+ return this._getPageConfigurationAsync(_request, _options);
564
+ }
565
+ async _getObjectMappingAsync(request, options) {
566
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
567
+ base.WebApiBase.SetPending(options);
568
+ return new Promise(async (resolve, reject) => {
569
+ try {
570
+ config.baseURL = this._options.baseUrl;
571
+ const response = await this._axios.post("GetObjectMapping", request, config);
572
+ base.WebApiBase.SetCompleted(options);
573
+ const res = response.data;
574
+ resolve(res);
575
+ }
576
+ catch (err) {
577
+ base.WebApiBase.HandleError(options, config, err);
578
+ reject(err);
579
+ }
580
+ });
581
+ }
582
+ async getObjectMappingAsync(application, instance, webapi_options) {
583
+ let _request = null;
584
+ let _options = null;
585
+ const first = application;
586
+ if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined')) {
587
+ _request = application;
588
+ _options = instance;
589
+ }
590
+ else {
591
+ _request = {
592
+ application: application,
593
+ instance: instance,
594
+ };
595
+ _options = webapi_options;
596
+ }
597
+ return this._getObjectMappingAsync(_request, _options);
598
+ }
599
+ async _getFilterListAsync(request, options) {
600
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
601
+ base.WebApiBase.SetPending(options);
602
+ return new Promise(async (resolve, reject) => {
603
+ try {
604
+ config.baseURL = this._options.baseUrl;
605
+ const response = await this._axios.post("GetFilterList", request, config);
606
+ base.WebApiBase.SetCompleted(options);
607
+ const res = response.data;
608
+ resolve(res);
609
+ }
610
+ catch (err) {
611
+ base.WebApiBase.HandleError(options, config, err);
612
+ reject(err);
613
+ }
614
+ });
615
+ }
616
+ async getFilterListAsync(application, instance, webapi_options) {
617
+ let _request = null;
618
+ let _options = null;
619
+ const first = application;
620
+ if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined')) {
621
+ _request = application;
622
+ _options = instance;
623
+ }
624
+ else {
625
+ _request = {
626
+ application: application,
627
+ instance: instance,
628
+ };
629
+ _options = webapi_options;
630
+ }
631
+ return this._getFilterListAsync(_request, _options);
632
+ }
633
+ async _clearConfigurationCacheAsync(request, options) {
634
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
635
+ base.WebApiBase.SetPending(options);
636
+ return new Promise(async (resolve, reject) => {
637
+ try {
638
+ config.baseURL = this._options.baseUrl;
639
+ const response = await this._axios.post("ClearConfigurationCache", request, config);
640
+ base.WebApiBase.SetCompleted(options);
641
+ const res = response.data;
642
+ resolve(res);
643
+ }
644
+ catch (err) {
645
+ base.WebApiBase.HandleError(options, config, err);
646
+ reject(err);
647
+ }
648
+ });
649
+ }
650
+ async clearConfigurationCacheAsync(application, instance, forAllAssociates, webapi_options) {
651
+ let _request = null;
652
+ let _options = null;
653
+ const first = application;
654
+ if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined' || typeof (first.forAllAssociates) != 'undefined')) {
655
+ _request = application;
656
+ _options = instance;
657
+ }
658
+ else {
659
+ _request = {
660
+ application: application,
661
+ instance: instance,
662
+ forAllAssociates: forAllAssociates,
663
+ };
664
+ _options = webapi_options;
665
+ }
666
+ return this._clearConfigurationCacheAsync(_request, _options);
667
+ }
668
+ async _getAnyConfigurationAsync(request, options) {
669
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
670
+ base.WebApiBase.SetPending(options);
671
+ return new Promise(async (resolve, reject) => {
672
+ try {
673
+ config.baseURL = this._options.baseUrl;
674
+ const response = await this._axios.post("GetAnyConfiguration", request, config);
675
+ base.WebApiBase.SetCompleted(options);
676
+ const res = response.data;
677
+ resolve(res);
678
+ }
679
+ catch (err) {
680
+ base.WebApiBase.HandleError(options, config, err);
681
+ reject(err);
682
+ }
683
+ });
684
+ }
685
+ async getAnyConfigurationAsync(application, instance, item, type, webapi_options) {
686
+ let _request = null;
687
+ let _options = null;
688
+ const first = application;
689
+ if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined' || typeof (first.item) != 'undefined' || typeof (first.type) != 'undefined')) {
690
+ _request = application;
691
+ _options = instance;
692
+ }
693
+ else {
694
+ _request = {
695
+ application: application,
696
+ instance: instance,
697
+ item: item,
698
+ type: type,
699
+ };
700
+ _options = webapi_options;
701
+ }
702
+ return this._getAnyConfigurationAsync(_request, _options);
703
+ }
704
+ async _getEMarketingUrlAsync(request, options) {
705
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
706
+ base.WebApiBase.SetPending(options);
707
+ return new Promise(async (resolve, reject) => {
708
+ try {
709
+ config.baseURL = this._options.baseUrl;
710
+ const response = await this._axios.post("GetEMarketingUrl", request, config);
711
+ base.WebApiBase.SetCompleted(options);
712
+ const res = response.data;
713
+ resolve(res);
714
+ }
715
+ catch (err) {
716
+ base.WebApiBase.HandleError(options, config, err);
717
+ reject(err);
718
+ }
719
+ });
720
+ }
721
+ async getEMarketingUrlAsync(language, webapi_options) {
722
+ let _request = null;
723
+ let _options = null;
724
+ const first = language;
725
+ if (typeof (first) === "object" && first && (typeof (first.language) != 'undefined')) {
726
+ _request = language;
727
+ _options = webapi_options;
728
+ }
729
+ else {
730
+ _request = {
731
+ language: language,
732
+ };
733
+ _options = webapi_options;
734
+ }
735
+ return this._getEMarketingUrlAsync(_request, _options);
736
+ }
737
+ async _getCsProgramUrlAsync(request, options) {
738
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
739
+ base.WebApiBase.SetPending(options);
740
+ return new Promise(async (resolve, reject) => {
741
+ try {
742
+ config.baseURL = this._options.baseUrl;
743
+ const response = await this._axios.post("GetCsProgramUrl", request, config);
744
+ base.WebApiBase.SetCompleted(options);
745
+ const res = response.data;
746
+ resolve(res);
747
+ }
748
+ catch (err) {
749
+ base.WebApiBase.HandleError(options, config, err);
750
+ reject(err);
751
+ }
752
+ });
753
+ }
754
+ async getCsProgramUrlAsync(language, programName, action, extraParameters, webapi_options) {
755
+ let _request = null;
756
+ let _options = null;
757
+ const first = language;
758
+ if (typeof (first) === "object" && first && (typeof (first.language) != 'undefined' || typeof (first.programName) != 'undefined' || typeof (first.action) != 'undefined' || typeof (first.extraParameters) != 'undefined')) {
759
+ _request = language;
760
+ _options = programName;
761
+ }
762
+ else {
763
+ _request = {
764
+ language: language,
765
+ programName: programName,
766
+ action: action,
767
+ extraParameters: extraParameters,
768
+ };
769
+ _options = webapi_options;
770
+ }
771
+ return this._getCsProgramUrlAsync(_request, _options);
772
+ }
773
+ async _getCSAuthUrlAsync(request, options) {
774
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
775
+ base.WebApiBase.SetPending(options);
776
+ return new Promise(async (resolve, reject) => {
777
+ try {
778
+ config.baseURL = this._options.baseUrl;
779
+ const response = await this._axios.post("GetCSAuthUrl", request, config);
780
+ base.WebApiBase.SetCompleted(options);
781
+ const res = response.data;
782
+ resolve(res);
783
+ }
784
+ catch (err) {
785
+ base.WebApiBase.HandleError(options, config, err);
786
+ reject(err);
787
+ }
788
+ });
789
+ }
790
+ async getCSAuthUrlAsync(language, programName, action, extraParameters, webapi_options) {
791
+ let _request = null;
792
+ let _options = null;
793
+ const first = language;
794
+ if (typeof (first) === "object" && first && (typeof (first.language) != 'undefined' || typeof (first.programName) != 'undefined' || typeof (first.action) != 'undefined' || typeof (first.extraParameters) != 'undefined')) {
795
+ _request = language;
796
+ _options = programName;
797
+ }
798
+ else {
799
+ _request = {
800
+ language: language,
801
+ programName: programName,
802
+ action: action,
803
+ extraParameters: extraParameters,
804
+ };
805
+ _options = webapi_options;
806
+ }
807
+ return this._getCSAuthUrlAsync(_request, _options);
808
+ }
809
+ async _getCSRegistryValueAsync(request, options) {
810
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
811
+ base.WebApiBase.SetPending(options);
812
+ return new Promise(async (resolve, reject) => {
813
+ try {
814
+ config.baseURL = this._options.baseUrl;
815
+ const response = await this._axios.post("GetCSRegistryValue", request, config);
816
+ base.WebApiBase.SetCompleted(options);
817
+ const res = response.data;
818
+ resolve(res);
819
+ }
820
+ catch (err) {
821
+ base.WebApiBase.HandleError(options, config, err);
822
+ reject(err);
823
+ }
824
+ });
825
+ }
826
+ async getCSRegistryValueAsync(entry, webapi_options) {
827
+ let _request = null;
828
+ let _options = null;
829
+ const first = entry;
830
+ if (typeof (first) === "object" && first && (typeof (first.entry) != 'undefined')) {
831
+ _request = entry;
832
+ _options = webapi_options;
833
+ }
834
+ else {
835
+ _request = {
836
+ entry: entry,
837
+ };
838
+ _options = webapi_options;
839
+ }
840
+ return this._getCSRegistryValueAsync(_request, _options);
841
+ }
842
+ async _getCSWwwFolderAsync(options) {
843
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
844
+ base.WebApiBase.SetPending(options);
845
+ return new Promise(async (resolve, reject) => {
846
+ try {
847
+ config.baseURL = this._options.baseUrl;
848
+ const response = await this._axios.post("GetCSWwwFolder", undefined, config);
849
+ base.WebApiBase.SetCompleted(options);
850
+ const res = response.data;
851
+ resolve(res);
852
+ }
853
+ catch (err) {
854
+ base.WebApiBase.HandleError(options, config, err);
855
+ reject(err);
856
+ }
857
+ });
858
+ }
859
+ /**
860
+ * This method will get the www folder for CS
861
+ * @returns The www folder for CS
862
+ */
863
+ async getCSWwwFolderAsync(webapi_options) {
864
+ return this._getCSWwwFolderAsync(webapi_options);
865
+ }
866
+ async _getRefreshedPageConfigurationAsync(request, options) {
867
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
868
+ base.WebApiBase.SetPending(options);
869
+ return new Promise(async (resolve, reject) => {
870
+ try {
871
+ config.baseURL = this._options.baseUrl;
872
+ const response = await this._axios.post("GetRefreshedPageConfiguration", request, config);
873
+ base.WebApiBase.SetCompleted(options);
874
+ const res = response.data;
875
+ resolve(res);
876
+ }
877
+ catch (err) {
878
+ base.WebApiBase.HandleError(options, config, err);
879
+ reject(err);
880
+ }
881
+ });
882
+ }
883
+ async getRefreshedPageConfigurationAsync(application, instance, page, webapi_options) {
884
+ let _request = null;
885
+ let _options = null;
886
+ const first = application;
887
+ if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined' || typeof (first.page) != 'undefined')) {
888
+ _request = application;
889
+ _options = instance;
890
+ }
891
+ else {
892
+ _request = {
893
+ application: application,
894
+ instance: instance,
895
+ page: page,
896
+ };
897
+ _options = webapi_options;
898
+ }
899
+ return this._getRefreshedPageConfigurationAsync(_request, _options);
900
+ }
901
+ async _getWwwUrlAsync(request, options) {
902
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
903
+ base.WebApiBase.SetPending(options);
904
+ return new Promise(async (resolve, reject) => {
905
+ try {
906
+ config.baseURL = this._options.baseUrl;
907
+ const response = await this._axios.post("GetWwwUrl", request, config);
908
+ base.WebApiBase.SetCompleted(options);
909
+ const res = response.data;
910
+ resolve(res);
911
+ }
912
+ catch (err) {
913
+ base.WebApiBase.HandleError(options, config, err);
914
+ reject(err);
915
+ }
916
+ });
917
+ }
918
+ async getWwwUrlAsync(client, webapi_options) {
919
+ let _request = null;
920
+ let _options = null;
921
+ const first = client;
922
+ if (typeof (first) === "object" && first && (typeof (first.client) != 'undefined')) {
923
+ _request = client;
924
+ _options = webapi_options;
925
+ }
926
+ else {
927
+ _request = {
928
+ client: client,
929
+ };
930
+ _options = webapi_options;
931
+ }
932
+ return this._getWwwUrlAsync(_request, _options);
933
+ }
934
+ async _getHelpDispatcherUrlAsync(options) {
935
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
936
+ base.WebApiBase.SetPending(options);
937
+ return new Promise(async (resolve, reject) => {
938
+ try {
939
+ config.baseURL = this._options.baseUrl;
940
+ const response = await this._axios.post("GetHelpDispatcherUrl", undefined, config);
941
+ base.WebApiBase.SetCompleted(options);
942
+ const res = response.data;
943
+ resolve(res);
944
+ }
945
+ catch (err) {
946
+ base.WebApiBase.HandleError(options, config, err);
947
+ reject(err);
948
+ }
949
+ });
950
+ }
951
+ /**
952
+ * Will get the GetHelpDispatcherUrl used by the help system
953
+ * @returns URL to be used by the help system
954
+ */
955
+ async getHelpDispatcherUrlAsync(webapi_options) {
956
+ return this._getHelpDispatcherUrlAsync(webapi_options);
957
+ }
958
+ async _getWwwUrlForSMWebAsync(options) {
959
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
960
+ base.WebApiBase.SetPending(options);
961
+ return new Promise(async (resolve, reject) => {
962
+ try {
963
+ config.baseURL = this._options.baseUrl;
964
+ const response = await this._axios.post("GetWwwUrlForSMWeb", undefined, config);
965
+ base.WebApiBase.SetCompleted(options);
966
+ const res = response.data;
967
+ resolve(res);
968
+ }
969
+ catch (err) {
970
+ base.WebApiBase.HandleError(options, config, err);
971
+ reject(err);
972
+ }
973
+ });
974
+ }
975
+ /**
976
+ * Returns the URL used for the logo by the SM.web client. Uses urldispatch.aspx
977
+ * @returns Link to urldispatch.aspx tagged with [SOSITEURL]
978
+ */
979
+ async getWwwUrlForSMWebAsync(webapi_options) {
980
+ return this._getWwwUrlForSMWebAsync(webapi_options);
981
+ }
982
+ async _getCsCgiUrlInternalAsync(options) {
983
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
984
+ base.WebApiBase.SetPending(options);
985
+ return new Promise(async (resolve, reject) => {
986
+ try {
987
+ config.baseURL = this._options.baseUrl;
988
+ const response = await this._axios.post("GetCsCgiUrlInternal", undefined, config);
989
+ base.WebApiBase.SetCompleted(options);
990
+ const res = response.data;
991
+ resolve(res);
992
+ }
993
+ catch (err) {
994
+ base.WebApiBase.HandleError(options, config, err);
995
+ reject(err);
996
+ }
997
+ });
998
+ }
999
+ /**
1000
+ * This method will get the host name for CS
1001
+ * @returns Will get the host name for where CS is installed
1002
+ */
1003
+ async getCsCgiUrlInternalAsync(webapi_options) {
1004
+ return this._getCsCgiUrlInternalAsync(webapi_options);
1005
+ }
1006
+ async _getCRMUrlAsync(request, options) {
1007
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1008
+ base.WebApiBase.SetPending(options);
1009
+ return new Promise(async (resolve, reject) => {
1010
+ try {
1011
+ config.baseURL = this._options.baseUrl;
1012
+ const response = await this._axios.post("GetCRMUrl", request, config);
1013
+ base.WebApiBase.SetCompleted(options);
1014
+ const res = response.data;
1015
+ resolve(res);
1016
+ }
1017
+ catch (err) {
1018
+ base.WebApiBase.HandleError(options, config, err);
1019
+ reject(err);
1020
+ }
1021
+ });
1022
+ }
1023
+ async getCRMUrlAsync(soProtocol, currents, frameless, webapi_options) {
1024
+ let _request = null;
1025
+ let _options = null;
1026
+ const first = soProtocol;
1027
+ if (typeof (first) === "object" && first && (typeof (first.soProtocol) != 'undefined' || typeof (first.currents) != 'undefined' || typeof (first.frameless) != 'undefined')) {
1028
+ _request = soProtocol;
1029
+ _options = currents;
1030
+ }
1031
+ else {
1032
+ _request = {
1033
+ soProtocol: soProtocol,
1034
+ currents: currents,
1035
+ frameless: frameless,
1036
+ };
1037
+ _options = webapi_options;
1038
+ }
1039
+ return this._getCRMUrlAsync(_request, _options);
1040
+ }
1041
+ async _getEmailNumberOfDaysAsync(options) {
1042
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1043
+ base.WebApiBase.SetPending(options);
1044
+ return new Promise(async (resolve, reject) => {
1045
+ try {
1046
+ config.baseURL = this._options.baseUrl;
1047
+ const response = await this._axios.post("GetEmailNumberOfDays", undefined, config);
1048
+ base.WebApiBase.SetCompleted(options);
1049
+ const res = response.data;
1050
+ resolve(res);
1051
+ }
1052
+ catch (err) {
1053
+ base.WebApiBase.HandleError(options, config, err);
1054
+ reject(err);
1055
+ }
1056
+ });
1057
+ }
1058
+ /**
1059
+ *
1060
+ * @returns Number of days in the past for which we are fetching email
1061
+ */
1062
+ async getEmailNumberOfDaysAsync(webapi_options) {
1063
+ return this._getEmailNumberOfDaysAsync(webapi_options);
1064
+ }
1065
+ async _getCustomerUrlAsync(options) {
1066
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1067
+ base.WebApiBase.SetPending(options);
1068
+ return new Promise(async (resolve, reject) => {
1069
+ try {
1070
+ config.baseURL = this._options.baseUrl;
1071
+ const response = await this._axios.post("GetCustomerUrl", undefined, config);
1072
+ base.WebApiBase.SetCompleted(options);
1073
+ const res = response.data;
1074
+ resolve(res);
1075
+ }
1076
+ catch (err) {
1077
+ base.WebApiBase.HandleError(options, config, err);
1078
+ reject(err);
1079
+ }
1080
+ });
1081
+ }
1082
+ /**
1083
+ * This method will get the URL for the external access to the customer center
1084
+ * @returns The URL to the customer center, without any actions
1085
+ */
1086
+ async getCustomerUrlAsync(webapi_options) {
1087
+ return this._getCustomerUrlAsync(webapi_options);
1088
+ }
1089
+ async _getSpfDomainAsync(options) {
1090
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1091
+ base.WebApiBase.SetPending(options);
1092
+ return new Promise(async (resolve, reject) => {
1093
+ try {
1094
+ config.baseURL = this._options.baseUrl;
1095
+ const response = await this._axios.post("GetSpfDomain", undefined, config);
1096
+ base.WebApiBase.SetCompleted(options);
1097
+ const res = response.data;
1098
+ resolve(res);
1099
+ }
1100
+ catch (err) {
1101
+ base.WebApiBase.HandleError(options, config, err);
1102
+ reject(err);
1103
+ }
1104
+ });
1105
+ }
1106
+ /**
1107
+ * Get the SPF domain defined for the mail cluster for this tenant (Online only)
1108
+ * @returns The configured SPF domain. Will return empty for Onsite installations or tenants in Online using custom SMTP
1109
+ */
1110
+ async getSpfDomainAsync(webapi_options) {
1111
+ return this._getSpfDomainAsync(webapi_options);
1112
+ }
1113
+ /*
1114
+ * Gets a DiaryViewEntity object.
1115
+ * @param diaryViewEntityId - The primary key.
1116
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
1117
+ * @returns A single DiaryViewEntity
1118
+ */
1119
+ async getDiaryViewEntityAsync(diaryViewEntityId, options) {
1120
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1121
+ base.WebApiBase.SetPending(options);
1122
+ return new Promise(async (resolve, reject) => {
1123
+ try {
1124
+ const response = await this._axios.post("GetDiaryViewEntity?diaryViewEntityId=" + diaryViewEntityId, null, config);
1125
+ base.WebApiBase.SetCompleted(options);
1126
+ const res = converters.Create_DiaryViewEntity_From(response.data);
1127
+ resolve(res);
1128
+ }
1129
+ catch (err) {
1130
+ base.WebApiBase.HandleError(options, config, err);
1131
+ reject(err);
1132
+ }
1133
+ });
1134
+ }
1135
+ /*
1136
+ * Gets a SystemEventEntity object.
1137
+ * @param systemEventEntityId - The primary key.
1138
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
1139
+ * @returns A single SystemEventEntity
1140
+ */
1141
+ async getSystemEventEntityAsync(systemEventEntityId, options) {
1142
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1143
+ base.WebApiBase.SetPending(options);
1144
+ return new Promise(async (resolve, reject) => {
1145
+ try {
1146
+ const response = await this._axios.post("GetSystemEventEntity?systemEventEntityId=" + systemEventEntityId, null, config);
1147
+ base.WebApiBase.SetCompleted(options);
1148
+ const res = converters.Create_SystemEventEntity_From(response.data);
1149
+ resolve(res);
1150
+ }
1151
+ catch (err) {
1152
+ base.WebApiBase.HandleError(options, config, err);
1153
+ reject(err);
1154
+ }
1155
+ });
1156
+ }
1157
+ async _existsSystemEventAsync(request, options) {
1158
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1159
+ base.WebApiBase.SetPending(options);
1160
+ return new Promise(async (resolve, reject) => {
1161
+ try {
1162
+ config.baseURL = this._options.baseUrl;
1163
+ const response = await this._axios.post("ExistsSystemEvent", request, config);
1164
+ base.WebApiBase.SetCompleted(options);
1165
+ const res = response.data;
1166
+ resolve(res);
1167
+ }
1168
+ catch (err) {
1169
+ base.WebApiBase.HandleError(options, config, err);
1170
+ reject(err);
1171
+ }
1172
+ });
1173
+ }
1174
+ async existsSystemEventAsync(key, webapi_options) {
1175
+ let _request = null;
1176
+ let _options = null;
1177
+ const first = key;
1178
+ if (typeof (first) === "object" && first && (typeof (first.key) != 'undefined')) {
1179
+ _request = key;
1180
+ _options = webapi_options;
1181
+ }
1182
+ else {
1183
+ _request = {
1184
+ key: key,
1185
+ };
1186
+ _options = webapi_options;
1187
+ }
1188
+ return this._existsSystemEventAsync(_request, _options);
1189
+ }
1190
+ /*
1191
+ * Gets a WindowPosSize object.
1192
+ * @param windowPosSizeId - The primary key.
1193
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
1194
+ * @returns A single WindowPosSize
1195
+ */
1196
+ async getWindowPosSizeAsync(windowPosSizeId, options) {
1197
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1198
+ base.WebApiBase.SetPending(options);
1199
+ return new Promise(async (resolve, reject) => {
1200
+ try {
1201
+ const response = await this._axios.post("GetWindowPosSize?windowPosSizeId=" + windowPosSizeId, null, config);
1202
+ base.WebApiBase.SetCompleted(options);
1203
+ const res = converters.Create_WindowPosSize_From(response.data);
1204
+ resolve(res);
1205
+ }
1206
+ catch (err) {
1207
+ base.WebApiBase.HandleError(options, config, err);
1208
+ reject(err);
1209
+ }
1210
+ });
1211
+ }
1212
+ async _saveWindowPosSizeAsync(request, options) {
1213
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1214
+ base.WebApiBase.SetPending(options);
1215
+ return new Promise(async (resolve, reject) => {
1216
+ try {
1217
+ config.baseURL = this._options.baseUrl;
1218
+ const response = await this._axios.post("SaveWindowPosSize", request, config);
1219
+ base.WebApiBase.SetCompleted(options);
1220
+ const res = converters.Create_WindowPosSize_From(response.data);
1221
+ resolve(res);
1222
+ }
1223
+ catch (err) {
1224
+ base.WebApiBase.HandleError(options, config, err);
1225
+ reject(err);
1226
+ }
1227
+ });
1228
+ }
1229
+ async saveWindowPosSizeAsync(windowPosSize, webapi_options) {
1230
+ let _request = null;
1231
+ let _options = null;
1232
+ const first = windowPosSize;
1233
+ if (typeof (first) === "object" && first && (typeof (first.windowPosSize) != 'undefined')) {
1234
+ _request = windowPosSize;
1235
+ _options = webapi_options;
1236
+ }
1237
+ else {
1238
+ _request = {
1239
+ windowPosSize: windowPosSize,
1240
+ };
1241
+ _options = webapi_options;
1242
+ }
1243
+ return this._saveWindowPosSizeAsync(_request, _options);
1244
+ }
1245
+ async _deleteWindowPosSizeAsync(request, options) {
1246
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1247
+ base.WebApiBase.SetPending(options);
1248
+ return new Promise(async (resolve, reject) => {
1249
+ try {
1250
+ config.baseURL = this._options.baseUrl;
1251
+ const response = await this._axios.post("DeleteWindowPosSize", request, config);
1252
+ base.WebApiBase.SetCompleted(options);
1253
+ const res = response.data;
1254
+ resolve(res);
1255
+ }
1256
+ catch (err) {
1257
+ base.WebApiBase.HandleError(options, config, err);
1258
+ reject(err);
1259
+ }
1260
+ });
1261
+ }
1262
+ async deleteWindowPosSizeAsync(windowPosSizeId, webapi_options) {
1263
+ let _request = null;
1264
+ let _options = null;
1265
+ const first = windowPosSizeId;
1266
+ if (typeof (first) === "object" && first && (typeof (first.windowPosSizeId) != 'undefined')) {
1267
+ _request = windowPosSizeId;
1268
+ _options = webapi_options;
1269
+ }
1270
+ else {
1271
+ _request = {
1272
+ windowPosSizeId: windowPosSizeId,
1273
+ };
1274
+ _options = webapi_options;
1275
+ }
1276
+ return this._deleteWindowPosSizeAsync(_request, _options);
1277
+ }
1278
+ /*
1279
+ * Gets an array of WindowPosSize objects.
1280
+ * @param windowPosSizeIds - The primary keys.
1281
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
1282
+ * @returns An array of WindowPosSize
1283
+ */
1284
+ async getWindowPosSizeListAsync(windowPosSizeIds, options) {
1285
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1286
+ base.WebApiBase.SetPending(options);
1287
+ return new Promise(async (resolve, reject) => {
1288
+ try {
1289
+ const response = await this._axios.post("GetWindowPosSizeList", windowPosSizeIds, config);
1290
+ base.WebApiBase.SetCompleted(options);
1291
+ const res = converters.Create_WindowPosSizeArray_From(response.data);
1292
+ resolve(res);
1293
+ }
1294
+ catch (err) {
1295
+ base.WebApiBase.HandleError(options, config, err);
1296
+ reject(err);
1297
+ }
1298
+ });
1299
+ }
1300
+ async _getMyWindowPosSizesAsync(options) {
1301
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1302
+ base.WebApiBase.SetPending(options);
1303
+ return new Promise(async (resolve, reject) => {
1304
+ try {
1305
+ config.baseURL = this._options.baseUrl;
1306
+ const response = await this._axios.post("GetMyWindowPosSizes", undefined, config);
1307
+ base.WebApiBase.SetCompleted(options);
1308
+ const res = converters.Create_WindowPosSizeArray_From(response.data);
1309
+ resolve(res);
1310
+ }
1311
+ catch (err) {
1312
+ base.WebApiBase.HandleError(options, config, err);
1313
+ reject(err);
1314
+ }
1315
+ });
1316
+ }
1317
+ /**
1318
+ * Gets the window and dialog position and size settings belonging to the currently logged on user
1319
+ * @returns Array of window and dialog position and size settings
1320
+ */
1321
+ async getMyWindowPosSizesAsync(webapi_options) {
1322
+ return this._getMyWindowPosSizesAsync(webapi_options);
1323
+ }
1324
+ async _getWindowPosSizesOnPersonIdAsync(request, options) {
1325
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1326
+ base.WebApiBase.SetPending(options);
1327
+ return new Promise(async (resolve, reject) => {
1328
+ try {
1329
+ config.baseURL = this._options.baseUrl;
1330
+ const response = await this._axios.post("GetWindowPosSizesOnPersonId", request, config);
1331
+ base.WebApiBase.SetCompleted(options);
1332
+ const res = converters.Create_WindowPosSizeArray_From(response.data);
1333
+ resolve(res);
1334
+ }
1335
+ catch (err) {
1336
+ base.WebApiBase.HandleError(options, config, err);
1337
+ reject(err);
1338
+ }
1339
+ });
1340
+ }
1341
+ async getWindowPosSizesOnPersonIdAsync(personId, webapi_options) {
1342
+ let _request = null;
1343
+ let _options = null;
1344
+ const first = personId;
1345
+ if (typeof (first) === "object" && first && (typeof (first.personId) != 'undefined')) {
1346
+ _request = personId;
1347
+ _options = webapi_options;
1348
+ }
1349
+ else {
1350
+ _request = {
1351
+ personId: personId,
1352
+ };
1353
+ _options = webapi_options;
1354
+ }
1355
+ return this._getWindowPosSizesOnPersonIdAsync(_request, _options);
1356
+ }
1357
+ async _getWindowPosSizesOnAssociateIdAsync(request, options) {
1358
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1359
+ base.WebApiBase.SetPending(options);
1360
+ return new Promise(async (resolve, reject) => {
1361
+ try {
1362
+ config.baseURL = this._options.baseUrl;
1363
+ const response = await this._axios.post("GetWindowPosSizesOnAssociateId", request, config);
1364
+ base.WebApiBase.SetCompleted(options);
1365
+ const res = converters.Create_WindowPosSizeArray_From(response.data);
1366
+ resolve(res);
1367
+ }
1368
+ catch (err) {
1369
+ base.WebApiBase.HandleError(options, config, err);
1370
+ reject(err);
1371
+ }
1372
+ });
1373
+ }
1374
+ async getWindowPosSizesOnAssociateIdAsync(associateId, webapi_options) {
1375
+ let _request = null;
1376
+ let _options = null;
1377
+ const first = associateId;
1378
+ if (typeof (first) === "object" && first && (typeof (first.associateId) != 'undefined')) {
1379
+ _request = associateId;
1380
+ _options = webapi_options;
1381
+ }
1382
+ else {
1383
+ _request = {
1384
+ associateId: associateId,
1385
+ };
1386
+ _options = webapi_options;
1387
+ }
1388
+ return this._getWindowPosSizesOnAssociateIdAsync(_request, _options);
1389
+ }
1390
+ async _saveWindowPosSizesAsync(request, options) {
1391
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1392
+ base.WebApiBase.SetPending(options);
1393
+ return new Promise(async (resolve, reject) => {
1394
+ try {
1395
+ config.baseURL = this._options.baseUrl;
1396
+ const response = await this._axios.post("SaveWindowPosSizes", request, config);
1397
+ base.WebApiBase.SetCompleted(options);
1398
+ const res = converters.Create_WindowPosSizeArray_From(response.data);
1399
+ resolve(res);
1400
+ }
1401
+ catch (err) {
1402
+ base.WebApiBase.HandleError(options, config, err);
1403
+ reject(err);
1404
+ }
1405
+ });
1406
+ }
1407
+ async saveWindowPosSizesAsync(windowPosSizes, webapi_options) {
1408
+ let _request = null;
1409
+ let _options = null;
1410
+ const first = windowPosSizes;
1411
+ if (typeof (first) === "object" && first && (typeof (first.windowPosSizes) != 'undefined')) {
1412
+ _request = windowPosSizes;
1413
+ _options = webapi_options;
1414
+ }
1415
+ else {
1416
+ _request = {
1417
+ windowPosSizes: windowPosSizes,
1418
+ };
1419
+ _options = webapi_options;
1420
+ }
1421
+ return this._saveWindowPosSizesAsync(_request, _options);
1422
+ }
1423
+ } // class v1ConfigurationAgentController
1424
+ //# sourceMappingURL=ConfigurationAgent.js.map